$m =~ s/\A(#?\s*)/$1$self->{current_info}: /;
$cb->($m, @_);
};
- load_existing($self);
+ load_existing($self) unless $self->{-internal};
local $REINDEX;
if ($self->{-opt}->{reindex}) {
require PublicInbox::SharedKV;
if (defined(my $pl = $opt->{'project-list'})) {
my $pfx = shift @ARGV // die <<EOM;
PROJECTS_ROOT required for --project-list
+EOM
+ @ARGV and die <<EOM;
+--project-list does not accept additional directories
+(@ARGV)
+beyond `$pfx'
EOM
open my $fh, '<', $pl or die "open($pl): $!\n";
chomp(@git_dirs = <$fh>);
} elsif (!@git_dirs) {
die $help
} else {
+ die <<EOM if $opt->{update};
+--update requires `-d EXTDIR'
+EOM
for my $gd (@git_dirs) {
my $cd = "$gd/public-inbox-cindex";
my $cidx = PublicInbox::CodeSearchIdx->new($cd, { %$opt });