ideas icon indicating copy to clipboard operation
ideas copied to clipboard

Run the mistyped suggestion

Open dingo-d opened this issue 3 years ago • 1 comments

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 😄

dingo-d avatar Feb 17 '22 07:02 dingo-d

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.

danielbachhuber avatar Nov 09 '22 17:11 danielbachhuber