Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: pterjan [...] mandriva.com
Cc:
AdminCc:

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



Subject: Wrong report on ambiguous options
use Getopt::Long; @ARGV = qw(--no-); GetOptions( "no-a" => sub { print "a\n"; }, 'no-b|no-c' => sub { print "b or c\n"; }, ); prints: Option no- is ambiguous (no-a, no-b, no-b) should be: Option no- is ambiguous (no-a, no-b, no-c)
use Getopt::Long; @ARGV = qw(--no-); GetOptions( "no-a" => sub { print "a\n"; }, 'no-b|no-c' => sub { print "b or c\n"; }, );