homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Laszlo.Attila.Toth
Recipients Laszlo.Attila.Toth
Date 2012年02月08日.07:49:26
SpamBayes Score 1.0662846e-07
Marked as misclassified No
Message-id <1328687368.18.0.265955669963.issue13966@psf.upfronthosting.co.za>
In-reply-to
Content
If someone ports his code from optparse to argparse, there is a limit, that options and non-options can be mixed by default, and this behaviour cannot be disabled easily, an extra '--' argument is required in the command line.
In some cases it is much prettier to explicitly disable this, as was available in the deprecated optparse module.
I attach a patch that does this, adds disable_interspersed_args() to argparse.ArgumentParser.
History
Date User Action Args
2012年02月08日 07:49:28Laszlo.Attila.Tothsetrecipients: + Laszlo.Attila.Toth
2012年02月08日 07:49:28Laszlo.Attila.Tothsetmessageid: <1328687368.18.0.265955669963.issue13966@psf.upfronthosting.co.za>
2012年02月08日 07:49:27Laszlo.Attila.Tothlinkissue13966 messages
2012年02月08日 07:49:27Laszlo.Attila.Tothcreate

AltStyle によって変換されたページ (->オリジナル) /