Skip to content

Suggest an appropriate command when wp <taxonomy> or wp <post_type> is called #5624

@johnbillion

Description

@johnbillion

Feature Request

Describe your use case and the problem you are facing

When a user is tired they can invent commands in their head that don't exist, for example wp category.

Describe the solution you'd like

It would be great if an appropriate "Did you mean" message is shown when trying to run one of the following non-existent commands:

  • wp <taxonomy> <command> => Did you mean wp term <command> <taxonomy>?
  • wp <post_type> <command> => Did you mean wp post <command> --post_type=<post_type>?

If it's too complex to reliably construct the full suggestion, simply suggesting wp term or wp post as appropriate would still be very useful.

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