R. Bernstein wrote:
Giovanni Bajo suggests:
If you call OptionParser.disable_interspersed_args() on your parser,
it will stop parsing at the first positional argument, leaving other
options unparsed.
Wow - that was a quick answer! Thanks - it works great!
I see how I missed this.
R. Bernstein wrote:
I see how I missed this. Neither disable_.. or enable_.. have document
strings. And neither seem to described in the optparser section (6.21)
of the Python Library (http://docs.python.org/lib/module-optparse.html).
http://docs.python.org/lib/optparse-other-methods.html
--
Steve Holden [EMAIL PROTECTED] writes:
Well you are just as capable ...
Yes, I guess you are right. Done.
Couldn't find how to suggest an addition to the Python Cookbook (other
than some generic O'Reilly email), so I've put a submission to:
http://aspn.activestate.com/ASPN/Cookbook/Python/
--
Magnus Lycka informs:
[in response to my comment]:
I see how I missed this. Neither disable_.. or enable_.. have document
strings. And neither seem to described in the optparser section (6.21)
of the Python Library (http://docs.python.org/lib/module-optparse.html).
R. Bernstein wrote:
Magnus Lycka informs:
[in response to my comment]:
I see how I missed this. Neither disable_.. or enable_.. have document
strings. And neither seem to described in the optparser section (6.21)
of the Python Library (http://docs.python.org/lib/module-optparse.html).
optparse is way cool, far superior and cleaner than other options
processing libraries I've used.
In the next release of the Python debugger revision, I'd like to add
debugger options: --help and POSIX-shell style line trace (similar to
set -x) being two of the obvious ones.
So I'm wondering how