public function getOpt($option = null, $default = false)
    {
        if ($option === null) {
            return $this->options;
        }

        if (isset($this->options[$option])) {
            return $this->options[$option];
        }
        return $default;
    }
public function getOpt($option = null, $default = false)
    {
        if ($option === null) {
            return $this->options;
        }

        if (isset($this->options[$option])) {
            return $this->options[$option];
        }
        return $default;
    }
public function getOpt ( $ option = null , $ default = false ) { if ( $ option === null ) { return $ this -> options ; } if ( isset ( $ this -> options [ $ option ] ) ) { return $ this -> options [ $ option ] ; } return $ default ; }
Get the value of the given option

Please note that all options are accessed by their long option names regardless of how they were
specified on commandline.

Can only be used after parseOptions() has been run

@param mixed $option
@param bool|string $default what to return if the option was not set
@return bool|string|string[]
Get the value of the given option