[issue41255] Argparse.parse_args exits on unrecognized option with exit_on_error=False
Matthew Hughes
report at bugs.python.org
Thu Jul 9 09:59:51 EDT 2020
Matthew Hughes <matthewhughes934 at gmail.com> added the comment:
I've attached a patch containing tests showing the current behavior, namely that exit_on_error does not change the behavior of argparse.ArgumentParser.parse_args in either case:
* An unrecognized option is given
* A required option is not given
Should the docs be updated to note this?
----------
keywords: +patch
Added file: https://bugs.python.org/file49310/exit_on_error_tests.patch
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41255>
_______________________________________
More information about the Python-bugs-list
mailing list