[docs] [issue9182] document “--” as a way to distinguish option w/ narg='+' from positional argument in argparse
report at bugs.python.org
Mon Jul 23 20:44:04 CEST 2012
Steven Bethard <steven.bethard at gmail.com> added the comment:
Ok, here's what I think needs to go into the documentation here:
(1) Add a separate section to the argparse docs about '--'. Give examples like the ones in this issue, and show how '--' can solve them
(2) Cross-reference the section on '--' from nargs='?', nargs='*', nargs='+' and the "Arguments containing -" sections (and any other places where people are likely to run into the need for '--').
All of these changes should be on Doc/library/argparse.rst - I don't think we want to change the code at the moment.
Python tracker <report at bugs.python.org>
More information about the docs