Closed richardo2016 closed 3 years ago
finally I found I should customize option like this:
cli.command('[...rest]', 'desc')
.option('--out [out]', 'desc') // add one option var name with bracket here 🤔
.action(...)
const parsed = cli.parse(['', '', './src', '--out', './lib'], { run: false});
console.log(parsed)
then cli.parse
works as I expected.
Issue Type
run code below:
Expected
Actual
Possible Solutions
Info