ideas
ideas copied to clipboard
Run the mistyped suggestion
Feature Request
- [x] Yes, I reviewed the contribution guidelines.
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 😄
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.