Suggestion: UnixOptionParser class in optparse.py
Bjorn Pettersen
BPettersen at NAREX.com
Mon Jan 6 13:19:50 EST 2003
> From: Rich Harkins [mailto:rharkins at thinkronize.com]
>
> I love the OptionParser class. Good stuff. The only thing
> that I would want different (right now anyway) would be a
> simple way to parse Unix style options (first non-option
> argument terminates options).
Does the getopt module
(http://www.python.org/doc/current/lib/module-getopt.html) do what you
want? (It's the pre Python 2.3 way of doing options...)
-- bjorn
More information about the Python-list
mailing list