Skip to content

Commit

Permalink
lib: Support isset()' and empty()' checks on CLI params
Browse files Browse the repository at this point in the history
  • Loading branch information
lippserd committed Oct 1, 2014
1 parent 0846915 commit fa9bd59
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions library/Icinga/Cli/Params.php
Expand Up @@ -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()
*/
Expand Down

0 comments on commit fa9bd59

Please sign in to comment.