Skip to content

Automatically suggest possible commands when the command is not recognised #62

@rvesse

Description

@rvesse

Currently if you use an unrecognised command name this simply results in an error. It would be nice if we did something similar to git where we try to suggest what commands the user actually meant to use e.g.

git brac
git: 'brac' is not a git command. See 'git --help'.

Did you mean this?
	branch

To do this we would need to modify the CLI parser so that when it cannot find a command and there is no suitable default command we try and suggest commands. By computing string similarity between the user inputs and the actual command names we could rank possible commands and show the most appropriate suggestions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementProposed Enhancement/Featureuser-experienceImproves user experience

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions