P is for Practical | |
PerlMonks |
Re: deriving usage from Getopts::Longby QM (Parson) |
on Jul 29, 2005 at 15:33 UTC ( [id://479445]=note: print w/replies, xml ) | Need Help?? |
I second the use of Getopt::Declare.
I've tried to do a similar thing with Getopt::Long and others, but it never worked out nicely. There's always duplicate data, and it's hard to keep the comments in synch with the options. Getopt::Declare updates the options when I change the usage statement. I created a toy example for -x accepts up to 3 additional arguments at Re: -x accepts up to 3 additional arguments. -QM
In Section
Seekers of Perl Wisdom
|
|