good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: 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 reply to Re: Help required on Getopt::Long
by Anonymous Monk
|
|