diff options
-rw-r--r-- | quilt.changes | 8 | ||||
-rw-r--r-- | quilt/scripts/edmail.in | 10 |
2 files changed, 13 insertions, 5 deletions
diff --git a/quilt.changes b/quilt.changes index 164688f..b6d72fa 100644 --- a/quilt.changes +++ b/quilt.changes @@ -1,4 +1,12 @@ ------------------------------------------------------------------- +Tue May 23 16:56:02 CEST 2006 - khali@linux-fr.org + +- quilt/scripts/edmail.in: Declare option parameters as mandatory + rather than optional. This makes more sense as the parameters + are indeed not optional, and this also works around a bug in + Getopt::Long. + +------------------------------------------------------------------- Wed Apr 26 12:27:20 CEST 2006 - khali@linux-fr.org - quilt/pop.in: Delete .pc/$patch directory when popping empty diff --git a/quilt/scripts/edmail.in b/quilt/scripts/edmail.in index 06b1beb..8c87218 100644 --- a/quilt/scripts/edmail.in +++ b/quilt/scripts/edmail.in @@ -38,20 +38,20 @@ sub _($) { my (%append_name, %append_value, $remove_empty_headers, %remove_header, %extract_recipients_from, %replace_name, %replace_value, $charset); -GetOptions('add-recipient:s%' => +GetOptions('add-recipient=s%' => sub { $append_name{lc $_[1]} = $_[1]; $append_value{lc $_[1]} .= ",\n " . $_[2]; }, - 'remove-header:s' => sub { $remove_header{lc $_[1]}++ }, + 'remove-header=s' => sub { $remove_header{lc $_[1]}++ }, 'remove-empty-headers' => \$remove_empty_headers, - 'replace-header:s%' => + 'replace-header=s%' => sub { $replace_name{lc $_[1]} = $_[1]; $replace_value{lc $_[1]} = $_[2]; }, - 'extract-recipients:s' => sub { $extract_recipients_from{lc $_[1]} = 1 }, - 'charset:s' => \$charset) + 'extract-recipients=s' => sub { $extract_recipients_from{lc $_[1]} = 1 }, + 'charset=s' => \$charset) or exit 1; my %recipient_headers = map {lc $_ => 1} (@ARGV, keys %append_name); |