Perceived optparse shortcomings

Jeff Epler jepler at unpythonic.net
Thu Mar 18 09:42:34 EST 2004


On Thu, Mar 18, 2004 at 12:49:15AM -0500, David M. Cooke wrote:
> You didn't try it, did you :-)? It doesn't work -- generic options have to
> come before the subcommand w/ cvs.

Well, I tried this and got the error I expected:
    $ cvs co -z3
    cvs checkout: No CVSROOT specified!  Please use the `-d' option
    cvs [checkout aborted]: or set the CVSROOT environment variable.
.. but now I see that it doesn't actually work that way:
    $ cvs diff -z3
    diff: invalid option -- z

Jeff




More information about the Python-list mailing list