As reported in yargs/yargs#1701, using yargs@next with the new strictOptions is not working correctly when using a capitalize alias and setting parserConfiguration({ 'strip-aliased': true }). Here's some working code to reproduce the bug:
yargs(['foo', '-a'])
.parserConfiguration({ 'strip-aliased': true })
.strictOptions()
.option('and', { alias: 'A' })
.parse();
If you set 'strip-aliased': false then it fails as it should.
As reported in yargs/yargs#1701, using
yargs@nextwith the newstrictOptionsis not working correctly when using a capitalize alias and settingparserConfiguration({ 'strip-aliased': true }). Here's some working code to reproduce the bug:If you set
'strip-aliased': falsethen it fails as it should.