From 790d2a3949c371c2b36a0318c247507f43d34062 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 19 Jan 2016 15:31:05 +0100 Subject: [PATCH] Cli: Do not shift --verbose away, commands may still require it --- library/Icinga/Application/Cli.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/Icinga/Application/Cli.php b/library/Icinga/Application/Cli.php index 4361910ec..69fbef031 100644 --- a/library/Icinga/Application/Cli.php +++ b/library/Icinga/Application/Cli.php @@ -77,7 +77,8 @@ class Cli extends ApplicationBootstrap $config->application = 'icingacli'; } - if ($this->params->shift('verbose', false)) { + // TODO: Use shift() instead once Command::$isVerbose has been dropped + if ($this->params->get('verbose', false)) { $config->level = Logger::DEBUG; }