protected function findOption($name)
    {
        foreach ($this->options as $option) {
            if ($option->hasAlias($name)) {
                return $option;
            }
        }

        return null;
    }
protected function findOption($name)
    {
        foreach ($this->options as $option) {
            if ($option->hasAlias($name)) {
                return $option;
            }
        }

        return null;
    }
protected function findOption ( $ name ) { foreach ( $ this -> options as $ option ) { if ( $ option -> hasAlias ( $ name ) ) { return $ option ; } } return null ; }
Find option by name or alias.

@param   string $name The name or alias.

@return  Option  The found option object.

@since   2.0
Find option by name or alias .