From a6e4307886148225053e9668bd24fda784fa5b4a Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 12 Feb 2021 09:56:00 +0100 Subject: [PATCH] ModuleCommand: Disable dependency checks for the enable command refs #4284 --- application/clicommands/ModuleCommand.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/application/clicommands/ModuleCommand.php b/application/clicommands/ModuleCommand.php index 41bc7c377..fc4216743 100644 --- a/application/clicommands/ModuleCommand.php +++ b/application/clicommands/ModuleCommand.php @@ -90,7 +90,7 @@ class ModuleCommand extends Command /** * Enable a given module * - * Usage: icingacli module enable [--force] + * Usage: icingacli module enable */ public function enableAction() { @@ -98,13 +98,11 @@ class ModuleCommand extends Command $module = $this->params->shift('module'); } - $force = $this->params->shift('force', false); - if (! $module || $this->hasRemainingParams()) { return $this->showUsage(); } - $this->modules->enableModule($module, $force); + $this->modules->enableModule($module, true); } /**