]> git.donarmstrong.com Git - debbugs.git/commitdiff
handle --stop --exit or --quit
authorDon Armstrong <don@donarmstrong.com>
Thu, 6 Jul 2017 01:19:23 +0000 (18:19 -0700)
committerDon Armstrong <don@donarmstrong.com>
Thu, 6 Jul 2017 01:19:23 +0000 (18:19 -0700)
bin/local-debbugs

index 25c47c9300671f9e9a7a8e332627d898252c0840..6df4b15a2522a39af8a9fa97a28f419a0538f120 100755 (executable)
@@ -143,7 +143,7 @@ my %option_defaults = (port => 8080,
                      );
 
 GetOptions(\%options,
-          'daemon|D','show|s','search|select|S','mirror|M', 'stop',
+          'daemon|D','show|s','search|select|S','mirror|M', 'stop|exit|quit',
           'detach!',
           'css=s','cgi_bin|cgi-bin|cgi=s',
           'verbose|v+','quiet|q+',
@@ -158,7 +158,7 @@ $DEBUG = $options{debug};
 
 my @USAGE_ERRORS;
 if (1 != grep {exists $options{$_}} qw(daemon show search mirror stop)) {
-     push @USAGE_ERRORS,"You must pass one (and only one) of --daemon --show --search or --mirror";
+     push @USAGE_ERRORS,"You must pass one (and only one) of --daemon --show --search --mirror or --stop";
 }
 $options{verbose} = $options{verbose} - $options{quiet};