meszaros-lajos-gyorgy/minimist-lite

Seems parse error for this case

Opened this issue · 2 comments

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.

For interest, this has been fixed in the recovered Minimist project: minimistjs/minimist#6

For interest, this has been fixed in the recovered Minimist project: minimistjs/minimist#6

Thank you for the info!