Skip to content
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

Run the mistyped suggestion #163

Open
1 task done
dingo-d opened this issue Feb 17, 2022 · 1 comment
Open
1 task done

Run the mistyped suggestion #163

dingo-d opened this issue Feb 17, 2022 · 1 comment

Comments

@dingo-d
Copy link

dingo-d commented Feb 17, 2022

Feature Request

Describe your use case and the problem you are facing

When you mistype a command, a suggestion is found and displayed. For instance

wp themes list

Error: 'themes' is not a registered wp command. See 'wp help' for available commands.
Did you mean 'theme'?

Describe the solution you'd like

It would be cool to do what Symfony CLI is doing (if I remember correctly), it will give a suggestion and ask you do you want to run that instead. So if you type themes instead of theme for instance, it will warn you, but offer to run the suggestion instead.

Saves on a lot of typos and retyping 😄

@danielbachhuber
Copy link
Member

danielbachhuber commented Nov 9, 2022

Thanks for the suggestion, @dingo-d ! I think this is something we could consider. It would be good to research a few different CLI tools to see what their user experience is, and emulate those as prior art.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants