-
Notifications
You must be signed in to change notification settings - Fork 95
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
Alias Commands #124
Comments
How common are command aliases? |
It's not common but I see it as being comparable to the shorthands that are usually available with options like: Also, note that the way it is currently implemented in #125, is so that it is an optional feature that should not get in the way of the current behavior. However, I haven't benchmarked the performance of the changes. |
Thanks. |
Alias is a great feature for options, so it goes without saying that commands should also be able to.
Here's my rendition for how it could look like syntax-wise (based on Cocona):
Produces result, uses
,
the same as option aliases:Instead of Alias method, as it would have to change Add to not return void, you could also use params to take as Add argument, ie.
params string[]
, but will then not work for the overload, when using a delegate after commandPath:The text was updated successfully, but these errors were encountered: