summaryrefslogtreecommitdiff
path: root/Debian/Debhelper/Dh_Getopt.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Debian/Debhelper/Dh_Getopt.pm')
-rw-r--r--Debian/Debhelper/Dh_Getopt.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/Debian/Debhelper/Dh_Getopt.pm b/Debian/Debhelper/Dh_Getopt.pm
index 55e37fd2..77e4a723 100644
--- a/Debian/Debhelper/Dh_Getopt.pm
+++ b/Debian/Debhelper/Dh_Getopt.pm
@@ -68,6 +68,11 @@ sub AddIgnore { my($option,$file)=@_;
$options{IGNORE}->{$file}=1;
}
+# Add an item to the with list.
+sub AddWith { my($option,$value)=@_;
+ push @{$options{WITH}},$value;
+}
+
# This collects non-options values.
sub NonOption {
push @{$options{ARGV}}, @_;
@@ -180,6 +185,7 @@ sub parseopts {
"after=s" => \$options{AFTER},
"before=s" => \$options{BEFORE},
"remaining" => \$options{REMAINING},
+ "with=s" => \&AddWith,
"<>" => \&NonOption,
);