Add -v compatibility for command

This commit is contained in:
Jerry Ma
2025-06-12 11:57:42 +08:00
committed by GitHub
parent 5a7db86471
commit 8bd7794a2e

View File

@@ -80,7 +80,7 @@ abstract class BaseCommand extends Command
$this->output = $output;
global $ob_logger;
if ($input->getOption('debug')) {
if ($input->getOption('debug') || $output->getVerbosity() > OutputInterface::VERBOSITY_NORMAL) {
$ob_logger = new ConsoleLogger(LogLevel::DEBUG, decorated: !$input->getOption('no-ansi'));
define('DEBUG_MODE', true);
} else {