[issue28409] test.regrtest does not support multiple -x flags

STINNER Victor report at bugs.python.org
Tue Oct 11 10:35:03 EDT 2016


STINNER Victor added the comment:

Attached patch should fix the issue.

I didn't know that argparse was so strict: "arg1 -v arg2" is not supported by default, see the issue #14191, whereas it works well with optparse.

The patch uses parse_known_args() as a workaround, and then manually checks for unknown options.

----------
keywords: +patch
Added file: http://bugs.python.org/file45056/regrtest_cli.patch

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


More information about the Python-bugs-list mailing list