chiark / gitweb /
In option parser test `@ARGV' not `length @ARGV'. Closes:#795710.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 16 Aug 2015 12:04:03 +0000 (13:04 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 16 Aug 2015 12:04:03 +0000 (13:04 +0100)
debian/changelog
dgit

index 7a43446..577b81a 100644 (file)
@@ -1,6 +1,6 @@
 dgit (1.3) unstable; urgency=low
 
-  * 
+  * In option parser test `@ARGV' not `length @ARGV'.  Closes:#795710.
 
  --
 
diff --git a/dgit b/dgit
index eb9a97c..62cd049 100755 (executable)
--- 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;
        }