public function getOption($flag)
    {
        $this->parse();
        if ($this->_getoptConfig[self::CONFIG_IGNORECASE]) {
            $flag = strtolower($flag);
        }
        if (isset($this->_ruleMap[$flag])) {
            $flag = $this->_ruleMap[$flag];
            if (isset($this->_options[$flag])) {
                return $this->_options[$flag];
            }
        }
        return null;
    }
public function getOption($flag)
    {
        $this->parse();
        if ($this->_getoptConfig[self::CONFIG_IGNORECASE]) {
            $flag = strtolower($flag);
        }
        if (isset($this->_ruleMap[$flag])) {
            $flag = $this->_ruleMap[$flag];
            if (isset($this->_options[$flag])) {
                return $this->_options[$flag];
            }
        }
        return null;
    }
public function getOption ( $ flag ) { $ this -> parse ( ) ; if ( $ this -> _getoptConfig [ self :: CONFIG_IGNORECASE ] ) { $ flag = strtolower ( $ flag ) ; } if ( isset ( $ this -> _ruleMap [ $ flag ] ) ) { $ flag = $ this -> _ruleMap [ $ flag ] ; if ( isset ( $ this -> _options [ $ flag ] ) ) { return $ this -> _options [ $ flag ] ; } } return null ; }
Return the state of the option seen on the command line of the
current application invocation.

This function returns true, or the parameter value to the option, if any.
If the option was not given, this function returns false.

@param  string $flag
@return mixed
Return the state of the option seen on the command line of the current application invocation .