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 Lucretiel
Recipients Lucretiel, docs@python
Date 2015-03-12.18:37:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1426185431.21.0.35714831717.issue23651@psf.upfronthosting.co.za>
In-reply-to
Content
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'])
History
Date User Action Args
2015-03-12 18:37:11Lucretielsetrecipients: + Lucretiel, docs@python
2015-03-12 18:37:11Lucretielsetmessageid: <1426185431.21.0.35714831717.issue23651@psf.upfronthosting.co.za>
2015-03-12 18:37:11Lucretiellinkissue23651 messages
2015-03-12 18:37:11Lucretielcreate