Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
macbre committed Dec 18, 2013
1 parent d671ef7 commit b4eaf0f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 26 deletions.
7 changes: 7 additions & 0 deletions phantomas.js
@@ -1,4 +1,11 @@
#!/usr/bin/env node
/**
* PhantomJS-based web performance metrics collector
*
* Run "node phantomas.js" to get help
*
* @see https://github.com/macbre/phantomas
*/
var phantomas = require('./index'),
program = require('optimist'),
child,
Expand Down
28 changes: 2 additions & 26 deletions phantomjs/phantomas.js 100755 → 100644
@@ -1,31 +1,7 @@
#!/usr/bin/env phantomjs
/**
* PhantomJS-based web performance metrics collector
* phantomas script executed by PhantomJS
*
* @see https://github.com/macbre/phantomas
*
* Usage:
* ./phantomas.js
* --url=<page to check>
* [--format=json|csv|tap|plain]
* [--timeout=5]
* ]--viewport=<width>x<height>]
* [--verbose]
* [--silent]
* [--log=<log file>]
* [--modules=moduleOne,moduleTwo]
* [--skip-modules=moduleOne,moduleTwo]
* [--user-agent='Custom user agent']
* [--config='JSON config file']
* [--cookie='bar=foo;domain=url']
* [--cookie-jar='cookies JAR file']
* [--no-externals]
* [--allow-domain='domain,domain']
* [--block-domain='domain,domain']
* [--disable-js]
* [--analyze-css]
* [--film-strip]
* [--screenshot='file name']
* Don't run it directly. Use phantomas.js nodejs script instead!
*/
var args = require('system').args,
// parse script arguments
Expand Down

0 comments on commit b4eaf0f

Please sign in to comment.