*/ protected $options = [ '--debug' => 'Get log trace to follow what is happening under the hood.', ]; /** * Actually execute a command. * * @param array $params * * @return int|void */ public function run(array $params) { if (CLI::getOption('debug')) { PluginsManagerLogger::$formatter = CpmFormatterDebug::class; } else { PluginsManagerLogger::$formatter = CpmFormatter::class; } return 0; } }