BlueGit

blue-star danique-bot

Files

danique-bot / node_modules / phantomjs-prebuilt / lib / phantom / examples / arguments.js

arguments.js

Import template
timfa Tim · pushed by timfa · 4 years ago
c788ad20 History
arguments.js 267 B Download Raw
1"use strict";
2var system = require('system');
3if (system.args.length === 1) {
4 console.log('Try to pass some args when invoking this script!');
5} else {
6 system.args.forEach(function (arg, i) {
7 console.log(i + ': ' + arg);
8 });
9}
10phantom.exit();