Subject: | Enhancement to have 'verbose+' accept '--verbose=2' |
Date: | Thu, 23 Jun 2016 12:03:28 +0000 |
To: | "'bug-Getopt-Long [...] rt.cpan.org'" <bug-Getopt-Long [...] rt.cpan.org> |
From: | Ben Golding <Ben.Golding [...] synopsys.com> |
An enhancement idea to consider: the following
GetOptions ('verbose+' => \$verbose);
could also accept '--verbose=2' (or '--verbose 2' etc.) as equivalent to '--verbose --verbose'
Any zero-or-positive integer should be OK.
It would behave similar to
GetOptions ('verbose=i' => \$verbose);
http://perldoc.perl.org/Getopt/Long.html#A-little-bit-less-simple-options
Regards
Ben