public function getValue($args, $default = null)
    {
        if (isset($args[$this->name])) {
            return $args[$this->name];
        }

        if (isset($args[$this->shortName])) {
            return $args[$this->shortName];
        }

        return $default;
    }
public function getValue($args, $default = null)
    {
        if (isset($args[$this->name])) {
            return $args[$this->name];
        }

        if (isset($args[$this->shortName])) {
            return $args[$this->shortName];
        }

        return $default;
    }
public function getValue ( $ args , $ default = null ) { if ( isset ( $ args [ $ this -> name ] ) ) { return $ args [ $ this -> name ] ; } if ( isset ( $ args [ $ this -> shortName ] ) ) { return $ args [ $ this -> shortName ] ; } return $ default ; }
Looks for value of option in specified arguments array.
When option is not found then returns default value.

@param $args
@param null $default
@return mixed
Looks for value of option in specified arguments array . When option is not found then returns default value .