diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2021-10-18 11:01:47 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2021-10-18 11:01:47 +0100 |
commit | df618101a5ea15dc90c4a2968798ef2be9dba16f (patch) | |
tree | ded36e243d9e29b099d2fc0bf52c034726da7487 | |
parent | 0092454441a920ad6c097aa6ee18605ba2c5126f (diff) |
Exiqgrep: check arg parsing. Bug 2821
-rw-r--r-- | src/src/exiqgrep.src | 2 |
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'; } |