diff --git a/library/Icinga/Cli/Params.php b/library/Icinga/Cli/Params.php index 7236dcca24..5c6cbfe8b1 100644 --- a/library/Icinga/Cli/Params.php +++ b/library/Icinga/Cli/Params.php @@ -108,6 +108,18 @@ public function getAllStandalone() return $this->standalone; } + /** + * Support isset() and empty() checks on options + * + * @param $name + * + * @return bool + */ + public function __isset($name) + { + return isset($this->params[$name]); + } + /** * @see Params::get() */