Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
REMitchell
GitHub Repository: REMitchell/python-crawling
Path: blob/master/6-Selenium/phantomjs/examples/arguments.js
164 views
1
var system = require('system');
2
if (system.args.length === 1) {
3
console.log('Try to pass some args when invoking this script!');
4
} else {
5
system.args.forEach(function (arg, i) {
6
console.log(i + ': ' + arg);
7
});
8
}
9
phantom.exit();
10
11