-
Notifications
You must be signed in to change notification settings - Fork 481
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
Verb aliases #6
Comments
Comment by nemec This can be trivially fixed in the short term by setting |
Comment by gsscoder @kirillkovalenko, this is a nice idea! 👍 Thansk! |
Comment by kirillkovalenko @gsscoder are you really back? the issue is almost 2 y.o. now. |
Comment by gsscoder @kirillkovalenko, check the project activity this is the state of art of Command Line Parser Library 2.0.x-alpha: https://github.com/gsscoder/commandline/wiki/Latest-Version |
Comment by gsscoder |
Comment by kirillkovalenko There could be even more sugar. Many tools allow using a shorter form of a verb or command (e.g. 'hg o' instead of 'hg out') provided that this shorter form is not ambiguous, and if it is ambiguous a nice hint is provided in the error message, e.g. 'hg: command 'a' is ambiguous: add addremove annotate archive' |
Comment by gsscoder @kirillkovalenko, this alias is implicit like: [Verb("add")] class AddOptions { }
[Verb("commit")] class CommitOptions { } Will allow [Verb("add", Alias=new[] {"a"})] class AddOptions { }
[Verb("commit", Alias=new[] {"cm", "cmt"})] class CommitOptions { } ? |
Comment by rmunn 👍 from me for this feature. I could use verb aliases in my current project, if they were available. |
Was this issue forgotten? Still doesn't seem to be supported in any way. |
PR is welcome to support Verb aliases. |
Issue by kirillkovalenko
Tuesday Aug 20, 2013 at 17:19 GMT
Originally opened as gsscoder/commandline#90
I suggest implementing verb aliases. For example: hg rename, hg move, hg mv is the same command.
The text was updated successfully, but these errors were encountered: