chiark / gitweb /
Option parsing: Do not permit --blah="" (which won't work anyway)
[dgit.git] / dgit
diff --git a/dgit b/dgit
index c652e5db10113279fc22aa6d20ece200a641342f..13b47fd32b1fcd017cb6234965e9495b9000966e 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -3030,7 +3030,7 @@ sub parseopts () {
            } 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, $_;