New submission from Ankit Goel <ankitgoel...@gmail.com>:

argparse.ArgumentParser.error currently uses a hard coded exit status (2).
An optional argument (with default value 2) would be useful to change the 
status without needing to overwrite the method in a subclass like here: 
https://github.com/pytest-dev/pytest/pull/3925

----------
components: Library (Lib)
messages: 325779
nosy: Ankit Goel
priority: normal
severity: normal
status: open
title: Add optional argument for exit status in argparse.ArgumentParser.error
type: enhancement
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34742>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to