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
Default subcommand not possible in example #469
Comments
Facing same problem. I have: program.command('help', null, {isDefault:true})
.description('display help information.')
.action(function(){
program.outputHelp();
});
program.command('*', null, {noHelp:true})
.action(function(cmd){
console.error('unrecognized command: ' + cmd);
program.outputHelp();
});
|
+1 |
Is this going to be looked at? It seems like Lines 169 to 191 in aaa447a
|
Is this package at all maintained anymore? This is really a critical issue and is still not fixed. |
These days I'm using: And a more popular alternative is: |
The |
I know this is a lot to ask but could you elaborate (provide a short example maybe?) what does it mean git-style subcommands? I am mighty confused... |
@padcom |
Support for a default command with action handler shipped in Commander 5.0.0: #742 |
In Example we have a bunch of subcommands listed, however there is no way to make any of them the default.
I've tried, for example, changing the final subcommand to
.command('*', undefined, {isDefault: true})
however it seems to have no impact. Providing a description does worse: it causesfile-* does not exist
to be returned for either * or default.The text was updated successfully, but these errors were encountered: