yargs / yargs-unparser

convert back a yargs argv object to its original array form
MIT License
20 stars 17 forks source link

parsing and then unparsing removes `=` #86

Open naugtur opened 1 year ago

naugtur commented 1 year ago

I've been trying to get unparsed arguments passed on to npm6 and yargs parser+unparser turns --omit=dev that npm6 understands into ['--omit', 'dev'] which it doesn't.
I know it's not great of npm6 to do that, but it is an issue with unparser that it produces a different set of arguments.

It could use a hint from parser weather the value was given via = or not.

shadowspawn commented 1 year ago

Related: #80