Skip to content

Run the mistyped suggestion #6142

@dingo-d

Description

@dingo-d

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 😄

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions