se-interpreter icon indicating copy to clipboard operation
se-interpreter copied to clipboard

Command line options containing dots

Open pxwise opened this issue 11 years ago • 1 comments

When trying to execute se-interpreter test.js --browser-browserstack.user="myname" --browser-browserstack.key="123456qwerty", the parameters convert to:

"browserstack": {"user": "myname", "key": "123456qwerty"}

For browserstack options these would need to be:

{"browserstack.user": "myname", "browserstack.key": "123456qwerty"}

Wrapping parameter names in quotes does not change the behavior.

Could the command line parser allow parameter names containing dots to pass through as unmodified text?

pxwise avatar Oct 06 '14 20:10 pxwise

The optimist arguments parser is trying to be way too clever here, yeah. Will see if I can fix it.

Zarkonnen avatar Oct 07 '14 07:10 Zarkonnen