[issue32756] argparse: parse_known_args: raising exception on unknown arg following known one

paul j3 report at bugs.python.org
Mon Mar 19 13:26:11 EDT 2018


paul j3 <ajipanca at gmail.com> added the comment:

>From the documentation, 16.4.4.1. Option value syntax

> For short options (options only one character long), the option and its value can be concatenated:

> Several short options can be joined together, using only a single - prefix, as long as only the last option (or none of them) requires a value:

It does not promise that an short option and an unrelated (not-required) value will work.  The only value that works in such a construct is one required by the last short option.

I think this should be closed, unless you can support your expectations from documentation, or examples from other parsers.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32756>
_______________________________________


More information about the Python-bugs-list mailing list