git-send-email.perl: support no- prefix with older GetOptions
commitf471494303c2d2a085f384eac705379ef2423590
authorKyle J. McKay <mackyle@gmail.com>
Sat, 31 Jan 2015 02:40:17 +0000 (30 18:40 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Feb 2015 21:26:51 +0000 (16 13:26 -0800)
tree4d87da7c7878def23b291d254285396fd9724766
parent15598cf41beed0d86cd2ac443e0f69c5a3b40321
git-send-email.perl: support no- prefix with older GetOptions

Only Perl version 5.8.0 or later is required, but that comes with
an older Getopt::Long (2.32) that does not support the 'no-'
prefix.  Support for that was added in Getopt::Long version 2.33.

Since the help only mentions the 'no-' prefix and not the 'no'
prefix, add explicit support for the 'no-' prefix to support
older GetOptions versions.

Reported-by: Tom G. Christensen <tgc@statsbiblioteket.dk>
Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
Tested-by: Tom G. Christensen <tgc@statsbiblioteket.dk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-send-email.perl
t/t9001-send-email.sh