[New-bugs-announce] [issue31012] suggestion: allow termination argument in argparse to be specified as argument

Leon Avery report at bugs.python.org
Mon Jul 24 09:40:09 EDT 2017


New submission from Leon Avery:

In the argparse module, the argument '--' is interpreted as a signal that everything after it is a positional argument. '--' is literally written into the argparse code, in _parse_known_args. This means that a user who wishes to use '--' in some other way is out of luck. 

I suggest the addition of an argument to __init__ (or a method call, or something) that allows '--' to be replaced with some string of the user's choice.

----------
components: Library (Lib)
messages: 298967
nosy: Leon Avery
priority: normal
severity: normal
status: open
title: suggestion: allow termination argument in argparse to be specified as argument
type: enhancement
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31012>
_______________________________________


More information about the New-bugs-announce mailing list