Message237971
The documentation for the new argparse feature allow_abrev contains a typo:
>>> parser.add_argument('--foobar', action='store_true')
>>> parser.add_argument('--foonley', action='store_false')
>>> parser.parse_args([--foon])
usage: PROG [-h] [--foobar] [--foonley]
PROG: error: unrecognized arguments: --foon
The --foon should be quoted:
>>> parser.parse_args(['--foon']) |
|
Date |
User |
Action |
Args |
2015-03-12 18:37:11 | Lucretiel | set | recipients:
+ Lucretiel, docs@python |
2015-03-12 18:37:11 | Lucretiel | set | messageid: <1426185431.21.0.35714831717.issue23651@psf.upfronthosting.co.za> |
2015-03-12 18:37:11 | Lucretiel | link | issue23651 messages |
2015-03-12 18:37:11 | Lucretiel | create | |
|