Commit 8521d467 8521d4670add15fbb04bda97823434cced71032b by Nicolas Perriault

refs #28 - naming consistency

1 parent 6e38aa26
......@@ -2,4 +2,4 @@
CASPERJS_HOME="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"
phantomjs $CASPERJS_HOME/casper.js --casper-dir=$CASPERJS_HOME $*
phantomjs $CASPERJS_HOME/casper.js --casper-path=$CASPERJS_HOME $*
......
......@@ -34,14 +34,14 @@
// seeking for casperPath passed as an argument
phantom.args.forEach(function(arg) {
var pathMatch = arg.match(/--casper-dir=(.+)/);
var pathMatch = arg.match(/--casper-path=(.+)/);
if (pathMatch) {
phantom.casperPath = pathMatch[1];
}
});
if (!phantom.casperPath || !fs.isDirectory(phantom.casperPath)) {
console.log('Cannot find CasperJS home path. Did you set phantom.casperPath or pass the --casper-dir option?');
console.log('Cannot find CasperJS home path. Did you set phantom.casperPath or pass the --casper-path option?');
}
[
......