-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
expose prefix in dispatch error no-match and input-exhausted cases #92
Comments
Feel free to submit a PR, I prefer this to be called |
It's called |
Nowhere in a public API is the name |
It is (and was) exposed on master as part of the |
Wait, looks c870e24 removed it again. Line 77 in 05868bf
|
ok, let's keep dispatch then, didn't realize we already exposed it |
It would be helpful to have the
cmds
cli/src/babashka/cli.cljc
Line 638 in 05868bf
:no-match
and:input-exhausted
cases, because it's helpful to know how fardispatch
traversed the command tree until it encountered the error to give better error messages.Specifically, if I have
if I had the prefix "foo", I could genenrate an error message that lists all valid commands with prefix "foo" (i.e. "foo bar" "foo baz").
The text was updated successfully, but these errors were encountered: