hoppfrosch has asked for the wisdom of the Perl Monks concerning the following question:
Looking for some ideas concerning the following problem:
I want to write a script which takes some commandline options in the way git or cvs do:
scriptname GLOBAL_OPTIONS subcommand SUBCOMMAND_OPTIONS (for example cvs -d :sspi:cvs:/dir update -P)
The subcommand options might differ from subcommand to subcommand.
What's the best way to do this? Is there a perl package already?
Thanks in advance
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parsing commandline with subcommands
by Loops (Curate) on Jul 18, 2013 at 09:32 UTC | |
|
Re: Parsing commandline with subcommands
by Utilitarian (Vicar) on Jul 18, 2013 at 09:26 UTC | |
|
Re: Parsing commandline with subcommands
by Anonymous Monk on Jul 18, 2013 at 09:42 UTC | |
|
Re: Parsing commandline with subcommands
by tobyink (Canon) on Jul 18, 2013 at 21:46 UTC | |
|
Re: Parsing commandline with subcommands
by eserte (Deacon) on Sep 18, 2015 at 15:17 UTC | |
|
Re: Parsing commandline with subcommands
by hoppfrosch (Scribe) on Jul 18, 2013 at 10:01 UTC | |
|
Re: Parsing commandline with subcommands
by vsespb (Chaplain) on Jul 18, 2013 at 12:12 UTC | |
|
Re: Parsing commandline with subcommands
by code-ninja (Scribe) on Jul 18, 2013 at 09:11 UTC |