You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2019-09-12.15:56:25.822>created_at=<Date2019-08-21.17:11:33.473>labels= ['docs', '3.8', '3.9', 'performance']
title='Add an example of ArgumentParser.exit()'updated_at=<Date2019-09-12.15:56:25.821>user='https://github.com/shihai1991'
Adding an example of ArgumentParser.exit(), because some user would like cathing errors manually or consider exit progress or not when an error occurs.
I have not add example of ArgumentParser.error(), because i can not think some user scenarios:(
Activity
shihai1991 commentedon Aug 21, 2019
As paul said in bpo-9938:
The exit and error methods are mentioned in the 3.4 documentation, but there are no examples of modifying them.
I will update the examples in this weekend.
shihai1991 commentedon Aug 21, 2019
bpo-9938
shihai1991 commentedon Aug 24, 2019
Adding an example of ArgumentParser.exit(), because some user would like cathing errors manually or consider exit progress or not when an error occurs.
I have not add example of ArgumentParser.error(), because i can not think some user scenarios:(
[-]Add some examples of ArgumentParser.exit()[/-][+]Add an example of ArgumentParser.exit()[/+]matrixise commentedon Sep 12, 2019
New changeset b1a2abd by Stéphane Wirtel (Hai Shi) in branch 'master':
bpo-37908: Add an example of ArgumentParser.exit() (GH-15455)
b1a2abd
miss-islington commentedon Sep 12, 2019
New changeset 6dc3e61 by Miss Islington (bot) in branch '3.8':
bpo-37908: Add an example of ArgumentParser.exit() (GH-15455)
6dc3e61
matrixise commentedon Sep 12, 2019
Thank you