Message152839
| 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:28 | Laszlo.Attila.Toth | set | recipients:
+ Laszlo.Attila.Toth |
| 2012年02月08日 07:49:28 | Laszlo.Attila.Toth | set | messageid: <1328687368.18.0.265955669963.issue13966@psf.upfronthosting.co.za> |
| 2012年02月08日 07:49:27 | Laszlo.Attila.Toth | link | issue13966 messages |
| 2012年02月08日 07:49:27 | Laszlo.Attila.Toth | create |
|