Files
zulip/zephyr/tests/frontend/casperjs/samples/cliplay.coffee
Keegan McAllister 921f7832c5 Import CasperJS 1.0.0-RC4-0-g8c798c7
(imported from commit b24184d9de034ecf4054dbc72cd6c28b49309182)
2012-11-13 10:59:02 -05:00

20 lines
510 B
CoffeeScript

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()