summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2015-08-16 13:04:03 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2015-08-16 13:04:03 +0100
commitab500fe2332b6ad9af0baedd50440331c0b83492 (patch)
tree115a855b985df43eb570a4976287f0fdc59612d1 /dgit
parent48062e220dabad400a25779c051573b3e166bd23 (diff)
In option parser test `@ARGV' not `length @ARGV'. Closes:#795710.
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit2
1 files changed, 1 insertions, 1 deletions
diff --git a/dgit b/dgit
index eb9a97c..62cd049 100755
--- a/dgit
+++ b/dgit
@@ -3161,7 +3161,7 @@ sub parseopts () {
my ($what) = @_;
@rvalopts = ($_);
if (!defined $val) {
- badusage "$what needs a value" unless length @ARGV;
+ badusage "$what needs a value" unless @ARGV;
$val = shift @ARGV;
push @rvalopts, $val;
}