diff --git a/src/Codeception/Command/DryRun.php b/src/Codeception/Command/DryRun.php index 21fa43659e..ec7e977021 100644 --- a/src/Codeception/Command/DryRun.php +++ b/src/Codeception/Command/DryRun.php @@ -68,7 +68,7 @@ public function execute(InputInterface $input, OutputInterface $output) $dispatcher = new EventDispatcher(); $dispatcher->addSubscriber(new ConsolePrinter([ - 'colors' => !$input->getOption('no-ansi'), + 'colors' => (!$input->hasParameterOption('--no-ansi') xor $input->hasParameterOption('ansi')), 'steps' => true, 'verbosity' => OutputInterface::VERBOSITY_VERBOSE, ]));