src/Cli/CommandLine.php
public function exists($name)
    {
        list($key, $extra) = $this->_splitOptionName($name);
        if (isset($this->_values[$key]) && is_array($this->_values[$key]) && array_key_exists($extra, $this->_values[$key])) {
            return true;
        }
        if (isset($this->_options[$name])) {
            return isset($this->_options[$name]['default']);
        }
        return false;
    }
public function exists($name)
    {
        list($key, $extra) = $this->_splitOptionName($name);
        if (isset($this->_values[$key]) && is_array($this->_values[$key]) && array_key_exists($extra, $this->_values[$key])) {
            return true;
        }
        if (isset($this->_options[$name])) {
            return isset($this->_options[$name]['default']);
        }
        return false;
    }
public function exists ( $ name ) { list ( $ key , $ extra ) = $ this -> _splitOptionName ( $ name ) ; if ( isset ( $ this -> _values [ $ key ] ) && is_array ( $ this -> _values [ $ key ] ) && array_key_exists ( $ extra , $ this -> _values [ $ key ] ) ) { return true ; } if ( isset ( $ this -> _options [ $ name ] ) ) { return isset ( $ this -> _options [ $ name ] [ 'default' ] ) ; } return false ; }
Checks if an option has been setted.

@param  string  $name The name of the option.
@return boolean
Checks if an option has been setted .