From: Don Armstrong Date: Wed, 6 Aug 2014 21:25:50 +0000 (-0700) Subject: if there is no subcommand to debbugs-loadsql, display help X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=e5a7b4ac1e2dd3da0a9d4f8e44d8457844065360;p=debbugs.git if there is no subcommand to debbugs-loadsql, display help --- diff --git a/bin/debbugs-loadsql b/bin/debbugs-loadsql index c4722cd..d6096ba 100755 --- a/bin/debbugs-loadsql +++ b/bin/debbugs-loadsql @@ -184,6 +184,10 @@ if ($options{progress}) { my ($subcommand) = shift @ARGV; +if (not defined $subcommand) { + $subcommand = 'help'; + print STDERR "You must provide a subcommand; displaying help"; +} my $opts = handle_subcommand_arguments(\@ARGV,$subcommands{$subcommand}{arguments},$gop);