Commit 1c3b0b8d 1c3b0b8de49e344b9f4ae4b1d4fb43b0b4c464e4 by Nicolas Perriault

fixed phantom.casperPath was always redefined by cli argument value

1 parent 35a1cff6
......@@ -56,8 +56,9 @@
};
phantom.casperArgs = phantom.extractCasperArgs(phantom.args);
if (!phantom.casperPath) {
phantom.casperPath = phantom.casperArgs.options['casper-path'];
//console.log(JSON.stringify(phantom.casperArgs, null, 4))
}
if (!phantom.casperPath) {
console.log('Cannot find CasperJS home path. Did you set phantom.casperPath or pass the --casper-path option?');
......