-
Notifications
You must be signed in to change notification settings - Fork 38
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
Support error messages #2
Comments
Looks like error messages are printed by raising a Need to track down where these are handled so that we can format printing the output. I guess this will mean monkey patching another function call 😕 |
Docs about exception handling here: https://click.palletsprojects.com/en/8.0.x/exceptions/ Ah, after a bit of digging, I think this is probably the code that we want to customise: https://github.com/pallets/click/blob/6411f425fae545f42795665af4162006b36c5e4a/src/click/exceptions.py#L39-L43 |
ok, that worked - got basic support now: The click function has more complex code for This code also adds the need for more monkey patching lines, so it'll be better after #10 is merged. |
Now finally finished in #10 - working fully as expected I think 👍🏻 |
Currently, error messages from non-existent flags etc are not formatted. It would be good to give these consistent formatting.
I would be surprised if there are also other types of Click output which are also missing.
The text was updated successfully, but these errors were encountered: