Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seems parse error for this case #4

Open
meszaros-lajos-gyorgy opened this issue Dec 22, 2021 · 2 comments
Open

Seems parse error for this case #4

meszaros-lajos-gyorgy opened this issue Dec 22, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@meszaros-lajos-gyorgy
Copy link
Owner

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.

@meszaros-lajos-gyorgy meszaros-lajos-gyorgy added the enhancement New feature or request label Dec 22, 2021
@shadowspawn
Copy link

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

@meszaros-lajos-gyorgy
Copy link
Owner Author

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

Thank you for the info!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

2 participants