icingacli: repair command and action shortcuts

refs #11120
This commit is contained in:
Alexander A. Klimov 2016-02-10 13:28:34 +01:00
parent 1abd1d28bc
commit 9c592ead23
1 changed files with 4 additions and 0 deletions

View File

@ -278,6 +278,10 @@ class Loader
if (false !== $match) { if (false !== $match) {
return $haystack[$match]; return $haystack[$match];
} }
if (count($this->lastSuggestions) === 1) {
$lastSuggestions = array_values($this->lastSuggestions);
return $lastSuggestions[0];
}
return false; return false;
} }