laurentj / slimerjs

A scriptable browser like PhantomJS, based on Firefox
http://slimerjs.org
Other
3k stars 258 forks source link

Ignore command line options, provided after the script name #379

Open canonic-epicure opened 9 years ago

canonic-epicure commented 9 years ago

Right now, Slimer does own processing for every command line option. Meanwhile my JS script also accept arguments and among them --version, --debug and --help.

slimerjs myscript.js --help -> "help" should not be processed by Slimer but instead just passed to "require('system').args"

kidk commented 9 years ago

Had same problem while back. As a workaround I made sure my command line options don't overlap with slimerjs ones. You can for example use a prefix --my-help.