X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/27607d0311c4b32440c6a3396e4a022640dd930e..e3e281ccf9d8777d0df98ddd644720573e0343d1:/src/src/exiqgrep.src diff --git a/src/src/exiqgrep.src b/src/src/exiqgrep.src index c8762df47..9fee423e4 100644 --- a/src/src/exiqgrep.src +++ b/src/src/exiqgrep.src @@ -2,6 +2,8 @@ # Utility for searching and displaying queue information. # Written by Matt Hubbard 15 August 2002 +# +# Copyright (c) The Exim Maintainers 2021 # Except when they appear in comments, the following placeholders in this # source are replaced when it is turned into a runnable script: @@ -53,7 +55,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'; }