You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// main.jsprogram.option('-f, --force [boolean]').command('new','scaffolding')program.command('dev',function(){console.log(this.optsWithGlobals().force)// works as expected})program.parse(progress.argv)
// cli-new.js// `--force` options unavailable in `progress.argv`
I know there is passThroughOptions, but when I enable it, cli dev --force will stop working in favor of cli --force dev...
The text was updated successfully, but these errors were encountered:
There isn't any built-in support for passing global options through to executable subcommands. As in your example, there is support for globals in commands with action-handlers.
Defining environment variables might be one way of passing through the information.
I know there is
passThroughOptions
, but when I enable it,cli dev --force
will stop working in favor ofcli --force dev
...The text was updated successfully, but these errors were encountered: