[docs] [issue15258] argparse documentation: Improve optparse section regarding allow_interspersed_args
Nefarious CodeMonkey, Jr.
report at bugs.python.org
Fri Jul 6 00:41:13 CEST 2012
New submission from Nefarious CodeMonkey, Jr. <nejucomo at users.sourceforge.net>:
It was not obvious from the documentation on argparse how to emulate the optparse.OptionParser.allow_interspersed_args feature.
Please add something like the following to the section titled "Upgrading optparse code" (see: http://docs.python.org/library/argparse.html#upgrading-optparse-code )
"""
* If the optparse code sets allow_interspersed_args to False, then add an argparse positional argument with nargs=argparse.REMAINDER
"""
----------
assignee: docs at python
components: Documentation
messages: 164702
nosy: docs at python, nejucomo
priority: normal
severity: normal
status: open
title: argparse documentation: Improve optparse section regarding allow_interspersed_args
type: enhancement
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15258>
_______________________________________
More information about the docs
mailing list