Skip to content

Commit d9acb03

Browse files
committed
Prefer CLI values for colors
1 parent 644bbb9 commit d9acb03

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Config.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,10 +632,18 @@ public function processLongArgument($arg, $pos)
632632
echo 'by Squiz (http://www.squiz.net)'.PHP_EOL;
633633
exit(0);
634634
case 'colors':
635+
if (isset($this->overriddenDefaults['colors']) === true) {
636+
break;
637+
}
638+
635639
$this->colors = true;
636640
$this->overriddenDefaults['colors'] = true;
637641
break;
638642
case 'no-colors':
643+
if (isset($this->overriddenDefaults['colors']) === true) {
644+
break;
645+
}
646+
639647
$this->colors = false;
640648
$this->overriddenDefaults['colors'] = true;
641649
break;

0 commit comments

Comments
 (0)