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.htm
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).
>
> http://docs.py
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/
-
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
--
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 miss
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. Neither disable_.. or enable_
R. Bernstein wrote:
> It seems that with all of the flexibility of optparse it should handle
> this. I'm not sure right now what the best way to do so would be
> though. Suggestions?
If you call OptionParser.disable_interspersed_args() on your parser, it will
stop parsing at the first positional