diff --git a/src/lib/Mothership/Magerun/Base/Command/Workflow/AbstractWorkflow.php b/src/lib/Mothership/Magerun/Base/Command/Workflow/AbstractWorkflow.php index 1464288..d057535 100644 --- a/src/lib/Mothership/Magerun/Base/Command/Workflow/AbstractWorkflow.php +++ b/src/lib/Mothership/Magerun/Base/Command/Workflow/AbstractWorkflow.php @@ -88,7 +88,7 @@ public function run($args = [], $logIntoMagentoScheduler = true) $this->magentoRootDir = array_key_exists('root-dir', $args) ? $args['root-dir'] : null; $this->yaml = array_key_exists('yaml', $args) ? $args['yaml'] : []; - if (array_key_exists('disable-logs', $this->input->getOptions()) || (array_key_exists('disable-logs', $this->yaml['class']))) { + if ($this->input->getOption('disable-logs') || (array_key_exists('disable-logs', $this->yaml['class']))) { $this->areLogsDisabled = true; } diff --git a/src/lib/Mothership/Magerun/Base/Command/Workflow/RunCommand.php b/src/lib/Mothership/Magerun/Base/Command/Workflow/RunCommand.php index 50b35f5..2ec8d6d 100644 --- a/src/lib/Mothership/Magerun/Base/Command/Workflow/RunCommand.php +++ b/src/lib/Mothership/Magerun/Base/Command/Workflow/RunCommand.php @@ -80,7 +80,7 @@ protected function configure() 'disable-logs', 'ds', InputOption::VALUE_OPTIONAL, - 'disable explicity logs, if not set, logs are automatically enabled' + 'disable explicity logs, if not set and set to true, logs are automatically enabled' ); if (array_key_exists(1, $explodedConfig) && strpos($explodedConfig[1], 'yaml') !== false) {