chiark / gitweb /
Option parsing: Do not permit --blah="" (which won't work anyway)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 26 Jul 2015 16:55:48 +0000 (17:55 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 26 Jul 2015 18:55:31 +0000 (19:55 +0100)
dgit

diff --git a/dgit b/dgit
index c652e5d..13b47fd 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -3030,7 +3030,7 @@ sub parseopts () {
            } elsif (m/^--since-version=([^_]+|_)$/) {
                push @ropts, $_;
                $changes_since_version = $1;
            } elsif (m/^--since-version=([^_]+|_)$/) {
                push @ropts, $_;
                $changes_since_version = $1;
-           } elsif (m/^--([-0-9a-z]+)=(.*)/s &&
+           } elsif (m/^--([-0-9a-z]+)=(.+)/s &&
                     ($om = $opts_opt_map{$1}) &&
                     length $om->[0]) {
                push @ropts, $_;
                     ($om = $opts_opt_map{$1}) &&
                     length $om->[0]) {
                push @ropts, $_;