summaryrefslogtreecommitdiff
path: root/lib/getopts.pl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/getopts.pl')
-rw-r--r--lib/getopts.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/getopts.pl b/lib/getopts.pl
index 6590918016..a0818d1e3a 100644
--- a/lib/getopts.pl
+++ b/lib/getopts.pl
@@ -18,6 +18,7 @@ sub Getopts {
if($args[$pos+1] eq ':') {
shift(@ARGV);
if($rest eq '') {
+ ++$errs unless @ARGV;
$rest = shift(@ARGV);
}
eval "\$opt_$first = \$rest;";