Hi, I want to use a subcommand as default, and this subcommands has options. Something like this:
//app.js
program
.command('run', 'Execute stuff', {isDefault: true})
.command('list', 'List stuff')
.parse(process.argv);
// app-run.js
program
.option('-c, --config <file>', 'use a config file')
.parse(process.argv);
This command works fine:
And this as well (executes the default subcommand):
but on execute the default subcommand with options:
I have the followin error:
error: unknown option `-c'
Hi, I want to use a subcommand as default, and this subcommands has options. Something like this:
This command works fine:
And this as well (executes the default subcommand):
but on execute the default subcommand with options:
I have the followin error: