summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2015-08-14 14:07:21 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2015-08-14 18:34:59 +0100
commitbf5e40c8a56c5d7c3f78b50d354bd6568190375a (patch)
tree3ebdfe9ab33e7b1ad2d4fee41984f9d045c68b2a
parentf83789bb6d8cda46a87a61ca846843376261ad35 (diff)
Convert to defvalopt: --distro, -d
-rwxr-xr-xdgit7
1 files changed, 1 insertions, 6 deletions
diff --git a/dgit b/dgit
index f068df6..8963344 100755
--- a/dgit
+++ b/dgit
@@ -3124,6 +3124,7 @@ sub defvalopt ($$$&) {
defvalopt '--since-version', '-v', '[^_]+|_', sub {
($changes_since_version) = @_;
};
+defvalopt '--distro', '-d', '.+', sub { ($idistro) = (@_); };
sub parseopts () {
my $om;
@@ -3189,9 +3190,6 @@ sub parseopts () {
$initiator_tempdir =~ m#^/# or
badusage "--initiator-tempdir must be used specify an".
" absolute, not relative, directory."
- } elsif (m/^--distro=(.*)/s) {
- push @ropts, $_;
- $idistro = $1;
} elsif (m/^--build-products-dir=(.*)/s) {
push @ropts, $_;
$buildproductsdir = $1;
@@ -3247,9 +3245,6 @@ sub parseopts () {
} elsif (s/^-c(.*=.*)//s) {
push @ropts, $&;
push @git, '-c', $1;
- } elsif (s/^-d(.+)//s) {
- push @ropts, $&;
- $idistro = $1;
} elsif (s/^-C(.+)//s) {
push @ropts, $&;
$changesfile = $1;