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
<http://bugs.python.org/issue31012>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com