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
constyargs=require('yargs/yargs');yargs(process.argv.slice(2)).parserConfiguration({'combine-arrays': true}).config({"sourceIdx": "source","binIdx": ["bin1-file","bin2-file"]}).command('$0 <packageToSeed> [sourceIdx] [binIdx..]','make build sequence from a single package',{},(argv)=>console.log(argv)).argv;
@jly36963 the fix in #2100 seems to solve the issue when combine-arrays is false, but behaves a bit oddly when it's true. It seems that veriadic arguments are combined with the array defined in the config, but not arguments passed as dash arguments.
minimal example
invocation:
node ./minimal.js qwe
actual output:
expected output:
Can't help but notice that dashed variant of an array contains correct values.
I'm using yargs@17.3.0 and node v12.21.0
The text was updated successfully, but these errors were encountered: