[docs] [issue9182] argparse: optional argument w/ narg='+' conflicts w/ positional argsument

Éric Araujo report at bugs.python.org
Tue Jul 6 22:33:54 CEST 2010

Éric Araujo <merwok at netwok.org> added the comment:

I was suggesting a doc bug only if the current doc didn’t advertise clearly this way of combining nargs with positional arguments. Using “--” is most certainly standard and right, 

Using “--” to explicitly signal positional arguments is most certainly right and standard, but people have to read about that for the first time somewhere. In a perfect world, that would be in their shell’s man page, but better add a word about it in the reference. The “--” marker is actually mentioned in one section: http://docs.python.org/dev/library/argparse#arguments-containing

I’m reopening, suggesting that a line be added to explain the standard “--” separator for use cases like Sergey’s.

assignee:  -> docs at python
components: +Documentation -Library (Lib)
nosy: +docs at python
resolution: invalid -> 
stage:  -> needs patch
status: closed -> open

Python tracker <report at bugs.python.org>

More information about the docs mailing list