in reply to Help required on Getopt::Long
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