-
Notifications
You must be signed in to change notification settings - Fork 372
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
ux: similar subcommand tip shows deprecated subcommands #5335
Comments
That's from PR #2580. Maybe we can make the error clearer. |
Seems like a clap issue then |
No the error is fine, the issue is that the similarity tip should not list those hidden subcommands (at least in our case as we use them for those hinting stubs) nor should they be in completion - which they are, too, as I just checked |
I agree but I think the hint comes from clap so it might be harder to do. Maybe we've talked about this before with the clap folks? |
Relevant: clap-rs/clap#4853 |
FWIW, it would be nice if |
Description
We have some subcommands that were removed/renamed, but we actually left a hidden stub that prints out a helpful redirect to the new name or a way to do what the subcommand did.
The similarity hint should not show those stubs.
Steps to Reproduce the Problem
jj reverse @-
jj revert
- but 'revert' was renamed to 'backout' and surfaces a hint.Expected Behavior
The tip should not mention 'revert', just feels a bit unpolished.
Maybe it could've been smart enough to suggest 'backout' when I did 'reverse', but that's not a point of this issue.
Actual Behavior
Specifications
The text was updated successfully, but these errors were encountered: