Bug report
There are several issues with exceptions in the argparse module:
- Only error messages for ArgumentError and ArgumentTypeError should be translated. These exceptions are the part of the user interface of the program that uses
argparse. Other exceptions indicate logical errors in the program and are purposed for the programmer.
- ArgumentError should only be used for command line errors, not for logical errors in the program.
Linked PRs