mirror of https://github.com/vitalif/phantomjs
arguments.js: Dump all arguments passed to the script.
parent
5c05acd986
commit
160c4128d8
|
@ -0,0 +1,8 @@
|
|||
if (phantom.arguments.length === 0) {
|
||||
phantom.log('Try to pass some arguments when invoking this script!');
|
||||
} else {
|
||||
phantom.arguments.forEach(function (arg, i) {
|
||||
phantom.log(i + ': ' + arg);
|
||||
});
|
||||
}
|
||||
phantom.exit();
|
Loading…
Reference in New Issue