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