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 <rep...@bugs.python.org> <http://bugs.python.org/issue28409> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com