[issue23651] Typo in argparse allow_abrev

2015-03-12 Thread Berker Peksag

Berker Peksag added the comment:

Good catch, Nathan. Thanks!

--
nosy: +berker.peksag
resolution:  - fixed
stage:  - resolved
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23651
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23651] Typo in argparse allow_abrev

2015-03-12 Thread Nathan West

New submission from Nathan West:

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'])

--
assignee: docs@python
components: Documentation
messages: 237971
nosy: Lucretiel, docs@python
priority: normal
severity: normal
status: open
title: Typo in argparse allow_abrev
versions: Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23651
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23651] Typo in argparse allow_abrev

2015-03-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8411ae359c98 by Berker Peksag in branch 'default':
Issue #23651: Fix typo in allow_abbrev docs.
https://hg.python.org/cpython/rev/8411ae359c98

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23651
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com