Commit 8521d467 8521d4670add15fbb04bda97823434cced71032b by Nicolas Perriault

refs #28 - naming consistency

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