-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-107467: Restructure Argument Clinic command-line interface #107469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
edited by bedevere-bot
- Add and use CLIError exception for CLI usage errors
- On CLI error, print to stderr instead of stdout
- Put the entire CLI in main()
- Rework ClinicExternalTest to call main() instead of using subprocesses
- Issue: Restructure Argument Clinic CLI #107467
- Add and use CLIError exception for CLI usage errors - On CLI error, print to stderr instead of stdout - Put the entire CLI in main() - Rework ClinicExternalTest to call main() instead of using subprocesses
@AlexWaygood, are you fine with this? |
Haven't had a chance to look deeply yet, and would like to! :) |
I think some of this is reinventing the wheel a little bit, and can be simplified by making use of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Feel free to merge if you're happy with the changes I pushed :)
Thanks for the argparse error trick; I was unaware of that :) Let's land this and continue with the error handling refactoring. |