31 lines
768 B
JavaScript
Executable File
31 lines
768 B
JavaScript
Executable File
/*eslint strict:0*/
|
|
/*global CasperError, console, phantom, require*/
|
|
|
|
var casper = require("casper").create();
|
|
var dump = require("utils").dump;
|
|
|
|
// removing default options passed by the Python executable
|
|
casper.cli.drop("cli");
|
|
casper.cli.drop("casper-path");
|
|
|
|
if (casper.cli.args.length === 0 && Object.keys(casper.cli.options).length === 0) {
|
|
casper
|
|
.echo("Pass some args and options to see how they are handled by CasperJS")
|
|
.exit(1)
|
|
;
|
|
}
|
|
|
|
casper.echo("Casper CLI passed args:");
|
|
dump(casper.cli.args);
|
|
|
|
casper.echo("Casper CLI passed options:");
|
|
dump(casper.cli.options);
|
|
|
|
casper.echo("Casper CLI passed RAW args:");
|
|
dump(casper.cli.raw.args);
|
|
|
|
casper.echo("Casper CLI passed RAW options:");
|
|
dump(casper.cli.raw.options);
|
|
|
|
casper.exit();
|