This to avoid user error of a currently undocumented switch;
since --xapian-only always goes through the full history at
the moment.
or die "bad command-line args\n$usage";
if ($opt->{help}) { print $help; exit 0 };
die "--jobs must be >= 0\n" if defined $opt->{jobs} && $opt->{jobs} < 0;
+if ($opt->{xapianonly} && !$opt->{reindex}) {
+ die "--xapian-only requires --reindex\n";
+}
# require lazily to speed up --help
require PublicInbox::Admin;