Zarkonnen / se-interpreter

Interpreter for Selenium Builder JSON scripts based on node.js and wd.
34 stars 31 forks source link

Command line options containing dots #34

Open pxwise opened 10 years ago

pxwise commented 10 years ago

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?

Zarkonnen commented 10 years ago

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