Commit 6efbbbde 6efbbbdee208b357039b69bbafc7134d1146aa66 by Mickaël Andrieu

REFS #666 - Added more concise syntax on verbose option availability test

1 parent 057d8390
...@@ -129,7 +129,7 @@ var Casper = function Casper(options) { ...@@ -129,7 +129,7 @@ var Casper = function Casper(options) {
129 // factories 129 // factories
130 this.cli = phantom.casperArgs; 130 this.cli = phantom.casperArgs;
131 this.options.logLevel = this.cli.get('log-level', this.options.logLevel); 131 this.options.logLevel = this.cli.get('log-level', this.options.logLevel);
132 if (this.options.verbose === false) { 132 if (!this.options.verbose) {
133 this.options.verbose = this.cli.has('direct') || this.cli.has('verbose'); 133 this.options.verbose = this.cli.has('direct') || this.cli.has('verbose');
134 } 134 }
135 this.colorizer = this.getColorizer(); 135 this.colorizer = this.getColorizer();
......