Library/Phalcon/Commands/Command.php
public function getOption($option, $filters = null, $defaultValue = null)
    {
        if (is_array($option)) {
            foreach ($option as $optionItem) {
                if (isset($this->_parameters[$optionItem])) {
                    if ($filters !== null) {
                        return $this->filter($this->_parameters[$optionItem], $filters);
                    }

                    return $this->_parameters[$optionItem];
                }
            }

            return $defaultValue;
        }

        if (isset($this->_parameters[$option])) {
            if ($filters !== null) {
                return $this->filter($this->_parameters[$option], $filters);
            }

            return $this->_parameters[$option];
        }

        return $defaultValue;
    }
public function getOption($option, $filters = null, $defaultValue = null)
    {
        if (is_array($option)) {
            foreach ($option as $optionItem) {
                if (isset($this->_parameters[$optionItem])) {
                    if ($filters !== null) {
                        return $this->filter($this->_parameters[$optionItem], $filters);
                    }

                    return $this->_parameters[$optionItem];
                }
            }

            return $defaultValue;
        }

        if (isset($this->_parameters[$option])) {
            if ($filters !== null) {
                return $this->filter($this->_parameters[$option], $filters);
            }

            return $this->_parameters[$option];
        }

        return $defaultValue;
    }
public function getOption ( $ option , $ filters = null , $ defaultValue = null ) { if ( is_array ( $ option ) ) { foreach ( $ option as $ optionItem ) { if ( isset ( $ this -> _parameters [ $ optionItem ] ) ) { if ( $ filters !== null ) { return $ this -> filter ( $ this -> _parameters [ $ optionItem ] , $ filters ) ; } return $ this -> _parameters [ $ optionItem ] ; } } return $ defaultValue ; } if ( isset ( $ this -> _parameters [ $ option ] ) ) { if ( $ filters !== null ) { return $ this -> filter ( $ this -> _parameters [ $ option ] , $ filters ) ; } return $ this -> _parameters [ $ option ] ; } return $ defaultValue ; }
Returns the value of an option received.

@param mixed $option Option name or array of options
@param mixed $filters Filter name or array of filters [Optional]
@param mixed $defaultValue Default value [Optional]

@return mixed
Returns the value of an option received .