From a0f38e054037eee3ec02df8868bf38e11adb6c0e Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sat, 17 Oct 2015 20:47:46 +0100 Subject: [PATCH] Utils: exiqgrep error/usage if there are non-understood arguments. Bug 1586 --- src/src/exiqgrep.src | 1 + 1 file changed, 1 insertion(+) diff --git a/src/src/exiqgrep.src b/src/src/exiqgrep.src index afecbffee..2c52f137f 100644 --- a/src/src/exiqgrep.src +++ b/src/src/exiqgrep.src @@ -44,6 +44,7 @@ if ($^O eq 'darwin') { # aka MacOS X }; getopts('hf:r:y:o:s:C:zxlibRca',\%opt); +if ($ARGV[0]) { &help; exit;} if ($opt{h}) { &help; exit;} if ($opt{a}) { $eargs = '-bp'; } if ($opt{C} && -e $opt{C} && -f $opt{C} && -R $opt{C}) { $eargs .= ' -C '.$opt{C}; } -- 2.30.2