From d8746fb0bc8f3878cd165f414bad3b88af4a560d Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Wed, 6 Aug 2014 14:25:50 -0700 Subject: [PATCH] if there is no subcommand to debbugs-loadsql, display help --- bin/debbugs-loadsql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/debbugs-loadsql b/bin/debbugs-loadsql index c4722cd0..d6096ba4 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); -- 2.39.5