Skip Menu |

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

Report information
The Basics
Id: 34199
Status: resolved
Priority: 0/
Queue: Getopt-Euclid

People
Owner: Nobody in particular
Requestors: djerius [...] cpan.org
Cc:
AdminCc:

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



Subject: Malformed spec with alias causes silent default value breakage
The following code illustrates the problem: #!/usr/bin/perl use strict; use warnings; use Getopt::Euclid; use Data::Dumper; print Dumper %ARGV; __END__ =head1 OPTIONS =over =item --delta <delta | -d <delta> The string used to prefix the output file name(s). =for Euclid delta.default: +2 =back Note the missing > for the first placeholder. The spec is parsed without warnings, and the command line argument seems to work, but no default value is produced: % perl ~/tmp/goe % perl ~/tmp/goe --delta 2 $VAR1 = '--delta'; $VAR2 = '2'; $VAR3 = '-d'; $VAR4 = '2'; Thanks, Diab
Thanks for reporting. This should now be working in version 0.2.4.