Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve suggestions #163

Merged
merged 2 commits into from Sep 29, 2015
Merged

Conversation

fabianofranz
Copy link
Contributor

Multiple improvements to suggestions when "unknown command" errors happen. Basically a HasPrefix will now also match, and adds the SuggestFor attribute to allow explicit suggestions. By setting that attribute you can for example suggest the valid command remove when users try delete, if for some reason you don't want actual aliases.

@fabianofranz
Copy link
Contributor Author

@eparis Goodness and this should also fix #78.

@fabianofranz
Copy link
Contributor Author

CC @spf13

@fabianofranz
Copy link
Contributor Author

UP

@eparis
Copy link
Collaborator

eparis commented Sep 28, 2015

I looked through it, and it looked ok, but i'd like to look at it again. I'm traveling monday, but if I didn't commit, can you bother me again tuesday?

eparis added a commit that referenced this pull request Sep 29, 2015
@eparis eparis merged commit 046a673 into spf13:master Sep 29, 2015
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.

None yet

2 participants