Subject: | parameter,lists,keypairs with no value do not error gracefully |
For:
Param("foo")
If the command line reads (no value):
myprog.pl --foo
The following is generated:
Use of uninitialized value $value in substitution (s///) at
/usr/local/share/perl/5.10.1/Getopt/Lucid.pm line 467.
Use of uninitialized value $arg in substitution (s///) at
/usr/local/share/perl/5.10.1/Getopt/Lucid.pm line 401.
Use of uninitialized value $arg in substitution (s///) at
/usr/local/share/perl/5.10.1/Getopt/Lucid.pm line 401.
This is a minor bug but figured a graceful error might be nice for the
user.
I've added the necessary tests and code here:
https://github.com/kmcgrath/getopt-lucid