Skip Menu |

This queue is for tickets about the Getopt-Long CPAN distribution.

Report information
The Basics
Id: 68791
Status: resolved
Priority: 0/
Queue: Getopt-Long

People
Owner: Nobody in particular
Requestors: jean [...] veronis.fr
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Dubious behaviour with pass_through
The following works fine : use Getopt::Long; GetOptions('foo=s' => \$foo ); i.e. when the command line args are just --foo, it complains as follows : Option foo requires an argument However, when pass_through is set, the error is not seen anymore, which is confusing.
Thanks for the report. The behaviour is intentional. With passthrough, anything that is not recognized or not valid is passed through silently.