![]() |
|
The stupid question is the question not asked | |
PerlMonks |
Re: Parsing command line options without knowing what they areby GrandFather (Saint) |
on Nov 25, 2010 at 06:32 UTC ( [id://873585]=note: print w/replies, xml ) | Need Help?? |
I don't know how your code is structured so may be the following doesn't apply, but if I were faced with the issue of code changes requiring their own sets of command line options I'd modularise the code and have each module register the options it uses at start up. That way the registration code can perform conflict checking and build the allowed list of commands for Getopt::Long at the same time.
True laziness is hard work
In Section
Seekers of Perl Wisdom
|
|