ModuleCommand: Disable dependency checks for the enable command

refs #4284
This commit is contained in:
Johannes Meyer 2021-02-12 09:56:00 +01:00
parent 60d61a8fe7
commit a6e4307886
1 changed files with 2 additions and 4 deletions

View File

@ -90,7 +90,7 @@ class ModuleCommand extends Command
/** /**
* Enable a given module * Enable a given module
* *
* Usage: icingacli module enable <module-name> [--force] * Usage: icingacli module enable <module-name>
*/ */
public function enableAction() public function enableAction()
{ {
@ -98,13 +98,11 @@ class ModuleCommand extends Command
$module = $this->params->shift('module'); $module = $this->params->shift('module');
} }
$force = $this->params->shift('force', false);
if (! $module || $this->hasRemainingParams()) { if (! $module || $this->hasRemainingParams()) {
return $this->showUsage(); return $this->showUsage();
} }
$this->modules->enableModule($module, $force); $this->modules->enableModule($module, true);
} }
/** /**