Default subcommand not possible in example #469

mfowlewebs opened this Issue Nov 12, 2015 · 2 comments


None yet

3 participants


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 causes file-* does not exist to be returned for either * or default.

subwiz commented Apr 17, 2016 edited

Facing same problem. I have:

program.command('help', null, {isDefault:true})
  .description('display help information.')

program.command('*', null, {noHelp:true})
    console.error('unrecognized command: ' + cmd);

noHelp is working as expected, while isDefault has no impact.



Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment