diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-08-14 14:10:15 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-08-14 18:34:59 +0100 |
commit | 31995d0c8b6212275829a7e432821d5d94633ef5 (patch) | |
tree | 3a4103d2692dba0010ecae07a6436ff7e507d3fe | |
parent | bf5e40c8a56c5d7c3f78b50d354bd6568190375a (diff) |
Convert to defvalopt: --existing-package
-rwxr-xr-x | dgit | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -3125,6 +3125,7 @@ defvalopt '--since-version', '-v', '[^_]+|_', sub { ($changes_since_version) = @_; }; defvalopt '--distro', '-d', '.+', sub { ($idistro) = (@_); }; +defvalopt '--existing-package', '', '.*', sub { ($existing_package) = (@_); }; sub parseopts () { my $om; @@ -3182,9 +3183,6 @@ sub parseopts () { ($om = $opts_opt_map{$1})) { push @ropts, $_; push @$om, $2; - } elsif (m/^--existing-package=(.*)/s) { - push @ropts, $_; - $existing_package = $1; } elsif (m/^--initiator-tempdir=(.*)/s) { $initiator_tempdir = $1; $initiator_tempdir =~ m#^/# or |