summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2021-10-18 11:01:47 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2021-10-18 11:01:47 +0100
commitdf618101a5ea15dc90c4a2968798ef2be9dba16f (patch)
treeded36e243d9e29b099d2fc0bf52c034726da7487
parent0092454441a920ad6c097aa6ee18605ba2c5126f (diff)
Exiqgrep: check arg parsing. Bug 2821
-rw-r--r--src/src/exiqgrep.src2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/src/exiqgrep.src b/src/src/exiqgrep.src
index c8762df47..04602da68 100644
--- a/src/src/exiqgrep.src
+++ b/src/src/exiqgrep.src
@@ -53,7 +53,7 @@ if ($ARGV[0] eq '--version') {
exit 0;
}
-getopts('hf:r:y:o:s:C:zxlibRcaG:',\%opt);
+if (!getopts('hf:r:y:o:s:C:zxlibRcaG:',\%opt) { &help; exit;}
if ($ARGV[0]) { &help; exit;}
if ($opt{h}) { &help; exit;}
if ($opt{a}) { $eargs = '-bp'; }