[getopt-sig] commands on the command line
Matthias Urlichs
smurf@noris.de
Mon, 4 Mar 2002 15:24:17 +0100
Hi,
A.T. Hofkamp:
> I've been thinking about commands on the command line. For example in cvs:
>
> cvs [cvs-options] command [command-options-and-arguments]
>
> Currently, we don't consider commands. However, that didn't feel right
> to me....
>
Personally, I fail to have a problem with
- parse global options with one instance of an option parser
- interpret the first non-option as command (assuming that options and
arguments are Not To Be Interspersed)
- parse command's options with another, different parser instance
so frankly I don't see the point of your code..?
--
Matthias Urlichs | noris network AG | http://smurf.noris.de/
--
Don't believe everything you hear or anything you say.