|
|
| No such thing as a small change | |
| PerlMonks |
Re: Help required on Getopt::Longby Anonymous Monk |
| on May 16, 2012 at 09:48 UTC ( #970788=note: print w/ replies, xml ) | Need Help?? |
|
This works as intended, --abc requires a string argument, so there is no way to make an exception for your case without breaking it for everyone else. I propose two work-arounds: Mention in the documentation that --help should come as first option (circular problem is some cases). Filter @ARGV for --help yourself before you call GetOptions.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||