[issue41255] Argparse.parse_args exits on unrecognized option with exit_on_error=False
paul j3
report at bugs.python.org
Fri Sep 10 00:42:35 EDT 2021
paul j3 <ajipanca at gmail.com> added the comment:
In
https://stackoverflow.com/questions/69108632/unable-to-catch-exception-error-for-argparse
we found that `exit_on_error` does not work when the error occurs in a subparser.
Unless someone wants to take time to get this right, I think this feature should be removed. It's too buggy.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41255>
_______________________________________
More information about the Python-bugs-list
mailing list