-
-
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
Added alias feature #210
Added alias feature #210
Conversation
+1 |
This is nice, why it did not get merged? |
@mattma Commander.js is under new management, so things are still a bit shaky. Great PR, but there are conflicts with the current version. Bring it up to date and I'll merge it in. |
Do you prefer this interface or the one in #64? I'm happy to update if this will actually be used. |
@tandrewnichols I like this one better - the syntax is a little clearer. I'll close the other one. Thanks! |
@tandrewnichols Thanks! |
Adds an alias feature:
Also cleans up commandHelp a little. At least for me, it never looks pretty because
is almost always longer than the given 22 space padding, so each command lines up differently. Plus, with adding an alias, it gets even longer. This just breaks the description onto a separate line, with a bit of padding at the front (and adds a newline after each command).