When using the following code:
const yargs = require('yargs')
console.log(yargs.option('opt', { array: true }).parse().opt)
Using a = or not changes the parsed value, which is quite confusing:
$ node yargs.js --opt=""
[]
$ node yargs.js --opt ""
[ '' ]
Using yargs 16.2.0 on Node 15.6.0.
When using the following code:
Using a
=or not changes the parsed value, which is quite confusing:Using yargs
16.2.0on Node15.6.0.