]> git.donarmstrong.com Git - debbugs.git/commitdiff
if there is no subcommand to debbugs-loadsql, display help
authorDon Armstrong <don@donarmstrong.com>
Wed, 6 Aug 2014 21:25:50 +0000 (14:25 -0700)
committerDon Armstrong <don@donarmstrong.com>
Wed, 6 Aug 2014 21:25:50 +0000 (14:25 -0700)
bin/debbugs-loadsql

index c4722cd06ac6565c2187788cd3d44c9fc71443fb..d6096ba461ad0f38b60159fe5f7ad934aa9ae261 100755 (executable)
@@ -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);