summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
16256d2)
There is precedent for capitalisation to negate, along with +c which is not
supported by Getopt::Long.
my %opt;
GetOptions(\%opt,
'color|c!',
my %opt;
GetOptions(\%opt,
'color|c!',
+ 'C' => sub { $opt{color} = 0 },
'interval|t:i',
'trim|length|l=s' => sub {
my ($optname, $optval) = @_;
'interval|t:i',
'trim|length|l=s' => sub {
my ($optname, $optval) = @_;