Library/Phalcon/Commands/Command.php
public function getOptions($filters = null)
    {
        if (!$filters) {
            return $this->_parameters;
        }

        $result = [];

        foreach ($this->_parameters as $param) {
            $result[] = $this->filter($param, $filters);
        }

        return $result;
    }
public function getOptions($filters = null)
    {
        if (!$filters) {
            return $this->_parameters;
        }

        $result = [];

        foreach ($this->_parameters as $param) {
            $result[] = $this->filter($param, $filters);
        }

        return $result;
    }
public function getOptions ( $ filters = null ) { if ( ! $ filters ) { return $ this -> _parameters ; } $ result = [ ] ; foreach ( $ this -> _parameters as $ param ) { $ result [ ] = $ this -> filter ( $ param , $ filters ) ; } return $ result ; }
Returns all received options.

@param mixed $filters Filter name or array of filters [Optional]

@return array
Returns all received options .