summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2015-10-17 20:47:46 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2015-10-17 20:49:59 +0100
commita0f38e054037eee3ec02df8868bf38e11adb6c0e (patch)
treede8546b50681fa346e3a2f0d51a3b5100375bdf9
parent8c952127a4d1827ea14da68d94eb5ea8d6174a35 (diff)
Utils: exiqgrep error/usage if there are non-understood arguments. Bug 1586
-rw-r--r--src/src/exiqgrep.src1
1 files changed, 1 insertions, 0 deletions
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}; }