-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
cli: improve messaging around usage errors #2854
Comments
@abn I found the way how to suppress the error, i.e. make it nicer:
I suppress the exception context like Is it what you wanted? |
is this still open? |
Beyond the traceback and whatnot, would this be an area that a fuzzy comparison or a SOUNDEX implementation (EDIT: maybe Levenshtein distance makes more sense than SOUNDEX in this context) could/should be used to find options that are most like what was given to provide a "did you mean" style feature? |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Right now if a cli user accidentally adds a wrong option or provides an incorect value, the error with the stack trace is ... rather intimidating. This should be improved by displaying a more useful message. The change actually might be required in
clikit
unfortunately.The text was updated successfully, but these errors were encountered: