Seems parse error for this case
Opened this issue · 2 comments
meszaros-lajos-gyorgy commented
Original issue by @poppinlp at https://github.com/substack/minimist/issues/154
I've run the code like node index.js -a="aaa=bbb" --a2="aaa=bbb"
And here are the output for process.argv
, minimist parsed result and yargs-parser parsed result:
origin argv [
'blabla/.nvm/versions/node/v14.7.0/bin/node',
'blabla not important',
'-a=aaa=bbb',
'--a2=aaa=bbb'
]
minimist { _: [], a: 'aaa', a2: 'aaa=bbb' }
yargs parser { _: [], a: 'aaa=bbb', a2: 'aaa=bbb' }
You could see, for -a
, minimist seems to get the wrong result.
shadowspawn commented
For interest, this has been fixed in the recovered Minimist project: minimistjs/minimist#6
meszaros-lajos-gyorgy commented
For interest, this has been fixed in the recovered Minimist project: minimistjs/minimist#6
Thank you for the info!