From a19bbfed6374080beb77493fe344218540c942d6 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 23 Nov 2016 21:10:48 +0100 Subject: [PATCH] ProcessCommand: document new flags and options fixes #10866 --- application/clicommands/ProcessCommand.php | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/application/clicommands/ProcessCommand.php b/application/clicommands/ProcessCommand.php index 55a44f6..e96eff7 100644 --- a/application/clicommands/ProcessCommand.php +++ b/application/clicommands/ProcessCommand.php @@ -3,9 +3,10 @@ namespace Icinga\Module\Businessprocess\Clicommands; use Icinga\Cli\Command; -use Icinga\Module\Businessprocess\Storage\LegacyStorage; use Icinga\Module\Businessprocess\BpNode; use Icinga\Module\Businessprocess\HostNode; +use Icinga\Module\Businessprocess\Node; +use Icinga\Module\Businessprocess\Storage\LegacyStorage; class ProcessCommand extends Command { @@ -43,7 +44,7 @@ class ProcessCommand extends Command * * OPTIONS * - * --no-title Show only the process names and no related title + * --no-title Show only the process names and no related title */ public function listAction() { @@ -62,7 +63,16 @@ class ProcessCommand extends Command * * USAGE * - * icingacli businessprocess process check [--config ] + * icingacli businessprocess process check [options] + * + * OPTIONS + * + * --config Name of the config that contains + * --details Show problem details as a tree + * --colors Show colored output + * --state-type Define which state type to look at. Could be + * either soft or hard, overrides an eventually + * configured default */ public function checkAction() { @@ -107,6 +117,7 @@ class ProcessCommand extends Command $output = ''; foreach ($tree as $name => $subtree) { + /** @var Node $node */ $node = $subtree['node']; if ($node instanceof HostNode) {