chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ab923cd
)
Convert to defvalopt: -k
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 14 Aug 2015 13:29:48 +0000
(14:29 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 14 Aug 2015 17:35:04 +0000
(18:35 +0100)
dgit
patch
|
blob
|
history
diff --git
a/dgit
b/dgit
index 6f4565bf017314d7ef109a22886445a628f67783..6ca1f33b38fdfb8408d5bf88203ddcbb94bf32af 100755
(executable)
--- a/
dgit
+++ b/
dgit
@@
-3124,6
+3124,7
@@
sub defvalopt ($$$$) {
defvalopt '--since-version', '-v', '[^_]+|_', \$changes_since_version;
defvalopt '--distro', '-d', '.+', \$idistro;
defvalopt '--since-version', '-v', '[^_]+|_', \$changes_since_version;
defvalopt '--distro', '-d', '.+', \$idistro;
+defvalopt '', '-k', '.+', \$keyid;
defvalopt '--existing-package','', '.*', \$existing_package;
defvalopt '--build-products-dir','','.*', \$buildproductsdir;
defvalopt '--clean', '', $cleanmode_re, \$cleanmode;
defvalopt '--existing-package','', '.*', \$existing_package;
defvalopt '--build-products-dir','','.*', \$buildproductsdir;
defvalopt '--clean', '', $cleanmode_re, \$cleanmode;
@@
-3245,8
+3246,6
@@
sub parseopts () {
push @ropts, $&;
push @changesopts, $_;
$_ = '';
push @ropts, $&;
push @changesopts, $_;
$_ = '';
- } elsif (s/^-k(.+)//s) {
- $keyid=$1;
} elsif (m/^-[dCk]$/) {
badusage
"option \`$_' requires an argument (and no space before the argument)";
} elsif (m/^-[dCk]$/) {
badusage
"option \`$_' requires an argument (and no space before the argument)";