Skip to content

Subcommand suggestions for typos #24

@clconway

Description

@clconway

I'd like for Commander.Execute to print a suggestion if the given subcommand looks like a typo similar to what Git does:

$ git brunch
git: 'brunch' is not a git command. See 'git --help'.

The most similar command is
        branch

I have a simple implementation of this using https://github.com/agext/levenshtein that I will attach as a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions