From de8bdfc83e91451c7b32b16346066696f72f7b6c Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Sat, 18 Mar 2023 23:25:55 -0500 Subject: [PATCH] Report an error if an unrecognized option is given to the gatekeeper --- gatekeeper.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1