From 13c94e1c0f9e9c66b329c801bede3348ea267b22 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 21 Mar 2023 23:07:41 +0000 Subject: cindex: squelch incompatible options Some options don't make sense when used together. --- script/public-inbox-cindex | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'script') diff --git a/script/public-inbox-cindex b/script/public-inbox-cindex index e2500b93..f8a3ebbb 100755 --- a/script/public-inbox-cindex +++ b/script/public-inbox-cindex @@ -52,6 +52,11 @@ my @git_dirs; if (defined(my $pl = $opt->{'project-list'})) { my $pfx = shift @ARGV // die <); @@ -67,6 +72,9 @@ if (defined $cidx_dir) { # external index } elsif (!@git_dirs) { die $help } else { + die <{update}; +--update requires `-d EXTDIR' +EOM for my $gd (@git_dirs) { my $cd = "$gd/public-inbox-cindex"; my $cidx = PublicInbox::CodeSearchIdx->new($cd, { %$opt }); -- cgit v1.2.3-24-ge0c7