[issue41600] Expected behavior of argparse given quoted strings

Vegard Stikbakke report at bugs.python.org
Thu Aug 20 07:56:07 EDT 2020


Vegard Stikbakke <vegard.stikbakke at gmail.com> added the comment:

It seems that I mixed up something in the post here. If the quoted string is `"--a=1 --b=2` as I said in the post, then the program will only complain about `b` missing. In this case, it sets `a` to be `1 --b=2`. Whereas if the quoted string is `"--a 1 --b 2"` (i.e. space and not `=` is used to separate), then it will say that both `a` and `b` are missing.

----------

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


More information about the Python-bugs-list mailing list