Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
20 lines (14 sloc) 0.51 kb
casper = require("casper").create()
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 is 0 and Object.keys(casper.cli.options).length is 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.exit()
Jump to Line
Something went wrong with that request. Please try again.