Perceived optparse shortcomings

David M. Cooke cookedm+news at physics.mcmaster.ca
Thu Mar 18 00:49:15 EST 2004


At some point, Jeff Epler <jepler at unpythonic.net> wrote:

>> Hans-Joachim Widmaier wrote:
>> > doesn't allow for generic options to be arguments to
>> > subcommand-specific options,
>> 
> On Wed, Mar 17, 2004 at 10:03:51AM -0500, David Goodger wrote:
>> What does that mean?
>
> Using the example of CVS again, the "-z#" argument specifies that
> compression should be used for network connections.  I think that these
> have the same effect:
>     cvs -z3 co foo
>     cvs co -z3 foo
> "-z#" can appear before or after subcommand in the commandline and has
> the same meaning in either location.

You didn't try it, did you :-)? It doesn't work -- generic options have to
come before the subcommand w/ cvs.

-- 
|>|\/|<
/--------------------------------------------------------------------------\
|David M. Cooke
|cookedm(at)physics(dot)mcmaster(dot)ca



More information about the Python-list mailing list