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

Add implied getopt-style dashed aliases #93

Open
rwxrob opened this issue Apr 29, 2022 · 0 comments
Open

Add implied getopt-style dashed aliases #93

rwxrob opened this issue Apr 29, 2022 · 0 comments

Comments

@rwxrob
Copy link
Owner

rwxrob commented Apr 29, 2022

People expect dashes these days (unfortunately). So to help alleviate
the adjustment it could help to automatically create hidden completion
aliases for every command and alias that also has one and two dashes in
front.

h|help -> -h --h --help -help

We'd keep the --h even though that would be very rare. As aliases
these will automatically be replaced when tab is touched providing
immediately feedback about what the correct command is.

When completion is not available, we can log the error as an unsupported
option, but give a really good hint about what the correct command is.

Nothing about the dashed support would even be documented because we
definitely do not want to encourage that, mostly because people will
expect that other behavior of getopt command lines, notably the ability
to change and use them in any order.

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

No branches or pull requests

1 participant