Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Parsing command line options without knowing what they are

by GrandFather (Saint)
on Nov 25, 2010 at 06:32 UTC ( [id://873585]=note: print w/replies, xml ) Need Help??


in reply to Parsing command line options without knowing what they are

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
  • Comment on Re: Parsing command line options without knowing what they are

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://873585]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2025-03-26 14:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (68 votes). Check out past polls.

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.