Message289327
If you have a argument named --<prefix> in a subparser and two arguments named --<prefix><any_suffix)> in the main parser and call the Python executable with
python <script.py> --<prefix>
argparse fails with:
error: ambiguous option: --<prefix> could match --<prefix><suffix1>, --<prefix><suffix2>
This probably happens due to how the argument abbreviation parsing is implemented. Is it possible to support disabling argument abbreviation in Python 2.7, as it is done in Python 3? |
|
Date |
User |
Action |
Args |
2017-03-09 20:35:40 | Alan Evangelista | set | recipients:
+ Alan Evangelista |
2017-03-09 20:35:40 | Alan Evangelista | set | messageid: <1489091740.64.0.424181036659.issue29777@psf.upfronthosting.co.za> |
2017-03-09 20:35:40 | Alan Evangelista | link | issue29777 messages |
2017-03-09 20:35:40 | Alan Evangelista | create | |
|