refs #28 - naming consistency
Showing
2 changed files
with
3 additions
and
3 deletions
... | @@ -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 | [ | ... | ... |
-
Please register or sign in to post a comment