Library for handling GNU parameters
François Pinard
pinard at iro.umontreal.ca
Mon Feb 23 17:19:09 EST 2004
[Peter Hansen]
> The standard library module getopt can do that, at least for the sort
> of example you show, and I suspect the newer standard library module
> optparse could also handle it (but haven't tried myself).
I think I read that `optparse' is not going to handle optional arguments
that we find in some commands, and which GNU `getopt' (and also the old
standard `getopt', if I remember well) do handle. As this is a design
choice for `optparse', it might never fully replace `getopt'.
--
François Pinard http://www.iro.umontreal.ca/~pinard
More information about the Python-list
mailing list