Commit 69b35953 69b35953522cdc256326792f038b3ac3b0aefbeb by mickaelandrieu

REFS #6666 - Ensure local options configuration override global configuration of Casper instance

1 parent 1b14a5f9
......@@ -129,7 +129,9 @@ var Casper = function Casper(options) {
// factories
this.cli = phantom.casperArgs;
this.options.logLevel = this.cli.get('log-level', this.options.logLevel);
this.options.verbose = this.cli.has('direct') || this.cli.has('verbose');
if (this.options.verbose === false) {
this.options.verbose = this.cli.has('direct') || this.cli.has('verbose');
}
this.colorizer = this.getColorizer();
this.mouse = mouse.create(this);
this.popups = pagestack.create();
......