Skip to content

Conversation

clconway
Copy link

This adds a dependency on github.com/agext/levenshtein to compute the edit
distance from the given subcommand to the program's registered subcommand names.

Fixes #24

This adds a dependency on github.com/agext/levenshtein to compute the edit
distance from the given subcommand to the program's registered subcommand names.
@clconway
Copy link
Author

@adjackura Ping?

@adjackura
Copy link
Collaborator

Sorry for not setting this earlier. I'd prefer not to add dependencies to this package as it is critical for a number of systems and just adding in typo help doesn't seem like a big enough reason to change that right now.

@fgm
Copy link

fgm commented Mar 2, 2021

One thing which could be done to support the use case without adding dependencies is support a generic catchall handler, as suggested in #30 : that way anyone wishing to add a levenshtein (or whatever) approximate matcher could add it on its own without having to fork this package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Subcommand suggestions for typos
3 participants