X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=dgit;h=0f372f21a3b33c690c1a1a5a7004da788f98a08f;hp=088f5d29174efbe53c5f534c86d3d05ef313bbfa;hb=6bd3129e4a21d8eeb44442f078d81187aa388ba0;hpb=0b9cdfb5dcbfd91fc516663cd28cdfe41df5833c diff --git a/dgit b/dgit index 088f5d29..0f372f21 100755 --- a/dgit +++ b/dgit @@ -1896,12 +1896,12 @@ sub parseopts () { } elsif (m/^--since-version=([^_]+|_)$/) { push @ropts, $_; $changes_since_version = $1; - } elsif (m/^--(\w+)=(.*)/s && + } elsif (m/^--([-0-9a-z]+)=(.*)/s && ($om = $opts_opt_map{$1}) && length $om->[0]) { push @ropts, $_; $om->[0] = $2; - } elsif (m/^--(\w+):(.*)/s && + } elsif (m/^--([-0-9a-z]+):(.*)/s && !$opts_opt_cmdonly{$1} && ($om = $opts_opt_map{$1})) { push @ropts, $_;