protected function getOption($name, $default = null)
    {
        $matchedOption = null;
        foreach ($this->actions[$this->actionName]->getOptions() as $option) {
            if ($option->matchParam($name)) {
                $matchedOption = $option;
            }
        }
        $value = $matchedOption->getValue($this->args, $default);

        return $value;
    }
protected function getOption($name, $default = null)
    {
        $matchedOption = null;
        foreach ($this->actions[$this->actionName]->getOptions() as $option) {
            if ($option->matchParam($name)) {
                $matchedOption = $option;
            }
        }
        $value = $matchedOption->getValue($this->args, $default);

        return $value;
    }
protected function getOption ( $ name , $ default = null ) { $ matchedOption = null ; foreach ( $ this -> actions [ $ this -> actionName ] -> getOptions ( ) as $ option ) { if ( $ option -> matchParam ( $ name ) ) { $ matchedOption = $ option ; } } $ value = $ matchedOption -> getValue ( $ this -> args , $ default ) ; return $ value ; }
Get option value for action from command line

@param $name
@param null $default
@throws MissingRequiredArgumentException
@return mixed
Get option value for action from command line