REFS #6666 - Ensure local options configuration override global configuration of Casper instance
Showing
1 changed file
with
3 additions
and
1 deletions
... | @@ -129,7 +129,9 @@ var Casper = function Casper(options) { | ... | @@ -129,7 +129,9 @@ 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 | this.options.verbose = this.cli.has('direct') || this.cli.has('verbose'); | 132 | if (this.options.verbose === false) { |
133 | this.options.verbose = this.cli.has('direct') || this.cli.has('verbose'); | ||
134 | } | ||
133 | this.colorizer = this.getColorizer(); | 135 | this.colorizer = this.getColorizer(); |
134 | this.mouse = mouse.create(this); | 136 | this.mouse = mouse.create(this); |
135 | this.popups = pagestack.create(); | 137 | this.popups = pagestack.create(); | ... | ... |
-
Please register or sign in to post a comment