-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Command abbreviation support #1463
Comments
I got used to this with Mercurial, but not supported by Git and I am out of the habit now. With options, getopt_long supports unambiguous abbreviations. |
@shadowspawn implementing this on your own is very trivial:
additionally, the commander could do:
|
However, the hard part for me is not implementing it, but deciding whether it is appropriate as the behaviour for all users of the library and all ways Commander could have been used. If it is popular enough but not appropriate as the default, then making it opt-in is a possibility. |
This comment has been minimized.
This comment has been minimized.
This issue has not had any activity in over six months. It isn't likely to get acted on due to this report. My main reservation about using abbreviation support with a program is that it can make adding a command a breaking change. Users who have used a previously unambiguous abbreviation in a script will get an error if the new command is also a candidate. On a related note, I am open to offering an unambiguous match as a candidate for unknown commands. See #1590 Feel free to open a new issue if it comes up again, with new information and renewed interest. Thank you for your contributions. |
Coming from php background, symfony/console allows to abbreviate commands to lessen typing:
it should be able to find 'sync' command, as it's unique enough:
The text was updated successfully, but these errors were encountered: