mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-10 18:35:35 +08:00
Add -v compatibility for command
This commit is contained in:
@@ -80,7 +80,7 @@ abstract class BaseCommand extends Command
|
|||||||
$this->output = $output;
|
$this->output = $output;
|
||||||
|
|
||||||
global $ob_logger;
|
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'));
|
$ob_logger = new ConsoleLogger(LogLevel::DEBUG, decorated: !$input->getOption('no-ansi'));
|
||||||
define('DEBUG_MODE', true);
|
define('DEBUG_MODE', true);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user