From: Ian Jackson Date: Fri, 14 Aug 2015 13:29:48 +0000 (+0100) Subject: Convert to defvalopt: -k X-Git-Tag: debian/1.2~4 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=8f52891ef4c7a803a1d8576897180a34b36a4e16;hp=ab923cd385d0105e1e9316bcb155342fde2a1efb Convert to defvalopt: -k --- diff --git a/dgit b/dgit index 6f4565bf..6ca1f33b 100755 --- a/dgit +++ b/dgit @@ -3124,6 +3124,7 @@ sub defvalopt ($$$$) { 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; @@ -3245,8 +3246,6 @@ sub parseopts () { push @ropts, $&; push @changesopts, $_; $_ = ''; - } elsif (s/^-k(.+)//s) { - $keyid=$1; } elsif (m/^-[dCk]$/) { badusage "option \`$_' requires an argument (and no space before the argument)";