From: Jacob Bachmeyer Date: Sun, 19 Mar 2023 04:25:55 +0000 (-0500) Subject: Report an error if an unrecognized option is given to the gatekeeper X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=de8bdfc83e91451c7b32b16346066696f72f7b6c;p=gatekeeper.git Report an error if an unrecognized option is given to the gatekeeper --- diff --git a/gatekeeper.pl b/gatekeeper.pl index 34ed24c..73b8a5a 100755 --- a/gatekeeper.pl +++ b/gatekeeper.pl @@ -251,7 +251,7 @@ BEGIN { 'nomail=i' => \$NOMAIL, 'debug|d=i' => \$DEBUG, 'testing-this-script' => \$TestingMode, - ); + ) or pod2usage(-verbose => 0, -exitval => 2); constant->import(ZONE => $ZONE); constant->import(DEBUG => $DEBUG);