Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Getopt::Declare: multiple option lists require terminators?by QM (Parson) |
on May 15, 2006 at 19:17 UTC ( [id://549577]=perlquestion: print w/replies, xml ) | Need Help?? |
QM has asked for the wisdom of the Perl Monks concerning the following question:
I've had to add multiple option lists to a Getopt::Declare option spec, like so:
Note: to get the lists to play nicely together, I had to add a list terminator. Otherwise, the next option is seen as the next item on the current list. (For lack of inspiration, I chose comma as the terminator.) Is there a way to make this work without the list terminator? It's especially egregious on the last list, but the options can be in any order. Also, users are complaining about missing data, "weird" error messages, etc., all attributed to incorrect command line options (e.g., no whitespace around commas). I'd really like to make this more user friendly, but I've got coder's block or something. -QM
Back to
Seekers of Perl Wisdom
|
|