vercel / arg

Simple argument parsing
https://npmjs.com/arg
MIT License
1.23k stars 54 forks source link

Everything after "=" gets stripped off in long args with "=" in value #47

Closed flexdinesh closed 5 years ago

flexdinesh commented 5 years ago

When an arg has = in the value, everything after (inc) = gets stripped off from the arg.

Pass this command to arg()

yarn keystone dev --connect-to=mongodb://user:pass@localhost:27017/keystone?authSource=admin&w=1

Current output --connect-to = mongodb://user:pass@localhost:27017/keystone?authSource

Expected output --connect-to = mongodb://user:pass@localhost:27017/keystone?authSource=admin&w=1

This is essential for passing URLs as arg value.

Qix- commented 5 years ago

Fixed in 4.1.1. Thanks for the report!