Perceived optparse shortcomings

Jeff Epler jepler at unpythonic.net
Wed Mar 17 16:13:06 CET 2004


> 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.

Jeff




More information about the Python-list mailing list