[docs] [issue9182] document “--” as a way to distinguish option w/ narg='+' from positional argument in argparse

Sergey Konoplev report at bugs.python.org
Tue Jul 6 23:51:23 CEST 2010

Sergey Konoplev <gray.ru at gmail.com> added the comment:

Thank you for the hint. It is realy not so obvious.

May be it is worth to add "--" into the usage string this way

usage: [-h] [-b BAR [BAR ...]] -- foo

Otherwise it leads to misunderstanding.


Python tracker <report at bugs.python.org>

More information about the docs mailing list