Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use optimist npm module for handling phantomas options #161

Closed
macbre opened this issue Dec 9, 2013 · 3 comments
Closed

Use optimist npm module for handling phantomas options #161

macbre opened this issue Dec 9, 2013 · 3 comments
Assignees
Milestone

Comments

@macbre
Copy link
Owner

macbre commented Dec 9, 2013

As phantomas.js entry point uses node.js now (#151), we can use optimist module for handling options passed to the script.

@ghost ghost assigned macbre Dec 9, 2013
@macbre
Copy link
Owner Author

macbre commented Dec 9, 2013

Waiting for #152

@macbre
Copy link
Owner Author

macbre commented Dec 12, 2013

From #163 (@plasticine)

I does not currently seem to be possible to pass along options to phantomjs when running phantomas.

CasperJS does this nice thing where it will pass any unrecognised config options down to phantom.

In my case I would like to set a few phantom specific options; --ignore-ssl-errors=true --cookies-file=cookie_jar, but that doesn’t seem to be possible.

@macbre
Copy link
Owner Author

macbre commented Dec 18, 2013

Setting DEBUG env variable will emit debug info

$ DEBUG=* ./phantomas.js --url https://github.com/macbre/phantomas --verbose --no-externals --allow-domain .fastly.net
  phantomas nodejs v0.10.4 +0ms
  phantomas PhantomJS v1.9.2 installed in /usr/local/bin/phantomjs +4ms
  phantomas phantomas v0.10.1 installed in /home/macbre/github/phantomas +0ms
  phantomas URL: <https://github.com/macbre/phantomas> +0ms
  phantomas Options: {"version":false,"V":false,"help":false,"h":false,"disable-js":false,"no-externals":true,"silent":false,"verbose":true,"v":true,"analyze-css":false,"film-strip":false,"allow-domain":".fastly.net","format":"plain","timeout":15,"viewport":"1280x1024"} +0ms
  phantomas Running /usr/local/bin/phantomjs /home/macbre/github/phantomas/phantomjs/phantomas.js --no-externals --verbose --v --allow-domain .fastly.net --format plain --timeout 15 --viewport 1280x1024 --url https://github.com/macbre/phantomas +1ms
  phantomas Spawned with pid #5315 +3ms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant