This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Ankit Goel
Recipients Ankit Goel
Date 2018-09-19.18:27:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1537381633.99.0.956365154283.issue34742@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2018-09-19 18:27:14Ankit Goelsetrecipients: + Ankit Goel
2018-09-19 18:27:13Ankit Goelsetmessageid: <1537381633.99.0.956365154283.issue34742@psf.upfronthosting.co.za>
2018-09-19 18:27:13Ankit Goellinkissue34742 messages
2018-09-19 18:27:13Ankit Goelcreate