Files
Ariya Hidayat 7f9e03ffad Change phantom.arguments to phantom.args.
This is explained in
http://code.google.com/p/phantomjs/issues/detail?id=16:

'arguments' is reserved word.

Reported by: Nicolas Ferrero.
2011-01-14 22:24:47 -08:00

9 lines
223 B
JavaScript

if (phantom.args.length === 0) {
console.log('Try to pass some args when invoking this script!');
} else {
phantom.args.forEach(function (arg, i) {
console.log(i + ': ' + arg);
});
}
phantom.exit();