-
-
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
Alias support for Git-style sub-commands #402
Comments
Can you provide an example? |
// example.js
#!/usr/bin/env node
var app = require('commander')
app
.version('1.0.0')
.command('foo', '...').alias('f')
.command('bar', '...').alias('b')
.command('baz', '...').alias('bz')
.parse(process.argv) // example-foo.js
#!/usr/bin/env node
console.log('hello foo') $ ./example.js foo // hello foo
$ ./example.js f // nothing... |
It should be "Alias support for Git-style sub-commands". |
Any plans on adding this/would authors be open to a PR? |
PR is welcome! |
Did we determine if this is a bug or lack of feature? The label says bug, but the docs are unclear. |
For anyone wondering, a fix for this has been merged into master, but the fix has not been published to npm. In the meantime, I'm pointing my dependency to the repo:
|
+1 for releasing with this fix |
@SomeKittens any chance we can get a new release? |
Aliases don't seem to work at all when using subcommands...
The text was updated successfully, but these errors were encountered: