From 9c592ead239d89b6d41982fe91226083e38844a2 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Wed, 10 Feb 2016 13:28:34 +0100 Subject: [PATCH] icingacli: repair command and action shortcuts refs #11120 --- library/Icinga/Cli/Loader.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/Icinga/Cli/Loader.php b/library/Icinga/Cli/Loader.php index f3710bbaa..0f7d2500f 100644 --- a/library/Icinga/Cli/Loader.php +++ b/library/Icinga/Cli/Loader.php @@ -278,6 +278,10 @@ class Loader if (false !== $match) { return $haystack[$match]; } + if (count($this->lastSuggestions) === 1) { + $lastSuggestions = array_values($this->lastSuggestions); + return $lastSuggestions[0]; + } return false; }