From: Ian Jackson Date: Fri, 14 Aug 2015 13:19:20 +0000 (+0100) Subject: Convert to defvalopt: --build-products-dir X-Git-Tag: debian/1.2~9 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=d70125efdeac7580a1d6a7cb5abb303e649619a1;ds=sidebyside Convert to defvalopt: --build-products-dir --- diff --git a/dgit b/dgit index 5215a5aa..5baa5b5c 100755 --- a/dgit +++ b/dgit @@ -3125,6 +3125,7 @@ sub defvalopt ($$$$) { defvalopt '--since-version', '-v', '[^_]+|_', \$changes_since_version; defvalopt '--distro', '-d', '.+', \$idistro; defvalopt '--existing-package','', '.*', \$existing_package; +defvalopt '--build-products-dir','','.*', \$buildproductsdir; defvalopt '--initiator-tempdir','','.*', sub { ($initiator_tempdir) = (@_); @@ -3194,9 +3195,6 @@ sub parseopts () { ($om = $opts_opt_map{$1})) { push @ropts, $_; push @$om, $2; - } elsif (m/^--build-products-dir=(.*)/s) { - push @ropts, $_; - $buildproductsdir = $1; } elsif (m/^--clean=($cleanmode_re)$/os) { push @ropts, $_; $cleanmode = $1;