From 2c141f8e49ea3b413e261471075401fc4d2a93b4 Mon Sep 17 00:00:00 2001 From: MaurizioBrioschi Date: Thu, 23 Mar 2017 17:58:17 +0100 Subject: [PATCH] feature disable-logs more srtrict --- .../Magerun/Base/Command/Workflow/AbstractWorkflow.php | 2 +- src/lib/Mothership/Magerun/Base/Command/Workflow/RunCommand.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {