src/Cli/CommandLine.php
public function get($name = null)
    {
        if (func_num_args()) {
            return $this->_get($name);
        }
        $result = [];
        foreach ($this->_values as $key => $data) {
            foreach ($data as $extra => $value) {
                if ($extra === '') {
                    $result[$key] = $this->_get($key);
                } else {
                    $result[$key][$extra] = $this->_get($key . ':' . $extra);
                }
            }
        }
        return $result;
    }
public function get($name = null)
    {
        if (func_num_args()) {
            return $this->_get($name);
        }
        $result = [];
        foreach ($this->_values as $key => $data) {
            foreach ($data as $extra => $value) {
                if ($extra === '') {
                    $result[$key] = $this->_get($key);
                } else {
                    $result[$key][$extra] = $this->_get($key . ':' . $extra);
                }
            }
        }
        return $result;
    }
public function get ( $ name = null ) { if ( func_num_args ( ) ) { return $ this -> _get ( $ name ) ; } $ result = [ ] ; foreach ( $ this -> _values as $ key => $ data ) { foreach ( $ data as $ extra => $ value ) { if ( $ extra === '' ) { $ result [ $ key ] = $ this -> _get ( $ key ) ; } else { $ result [ $ key ] [ $ extra ] = $ this -> _get ( $ key . ':' . $ extra ) ; } } } return $ result ; }
Gets the value of a specific option.

@param  string $name The name of the option.
@return array        The value.
Gets the value of a specific option .