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

Typo correction #22

Open
matejak opened this issue Aug 9, 2017 · 2 comments
Open

Typo correction #22

matejak opened this issue Aug 9, 2017 · 2 comments
Assignees
Labels

Comments

@matejak
Copy link
Owner

matejak commented Aug 9, 2017

It would be nice to have support for typo detection/suggestion, so e.g.
script --hepl would produce a --hepl is an invalid argument, did you mean --help? message

@matejak
Copy link
Owner Author

matejak commented Oct 3, 2022

Hello, have you considered using ARG_RESTRICT_VALUES as documented in https://argbash.readthedocs.io/en/latest/guide.html#convenience-macros?
Regarding suggestions, that requires quite complex logic that would have to be implemented in Bash - one would need to "compute" the "distance" of the supplied string from existing options, and then suggesting to select existing one. If you have Bash code in mind that could do this, please go ahead and suggest that.

@gdevenyi
Copy link

gdevenyi commented Oct 5, 2022

I think ARG_RESTRICT_VALUES is probably what I want, by the documentation and examples don't sufficiently describe how the three options differ

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

No branches or pull requests

2 participants