public function addRules($rules)
    {
        $ruleMode = $this->_getoptConfig['ruleMode'];
        switch ($this->_getoptConfig['ruleMode']) {
            case self::MODE_ZEND:
                if (is_array($rules)) {
                    $this->_addRulesModeZend($rules);
                    break;
                }
                // intentional fallthrough
            case self::MODE_GNU:
                $this->_addRulesModeGnu($rules);
                break;
            default:
                /**
                 * Call addRulesModeFoo() for ruleMode 'foo'.
                 * The developer should subclass Getopt and
                 * provide this method.
                 */
                $method = '_addRulesMode' . ucfirst($ruleMode);
                $this->$method($rules);
        }
        $this->_parsed = false;
        return $this;
    }
public function addRules($rules)
    {
        $ruleMode = $this->_getoptConfig['ruleMode'];
        switch ($this->_getoptConfig['ruleMode']) {
            case self::MODE_ZEND:
                if (is_array($rules)) {
                    $this->_addRulesModeZend($rules);
                    break;
                }
                // intentional fallthrough
            case self::MODE_GNU:
                $this->_addRulesModeGnu($rules);
                break;
            default:
                /**
                 * Call addRulesModeFoo() for ruleMode 'foo'.
                 * The developer should subclass Getopt and
                 * provide this method.
                 */
                $method = '_addRulesMode' . ucfirst($ruleMode);
                $this->$method($rules);
        }
        $this->_parsed = false;
        return $this;
    }
public function addRules ( $ rules ) { $ ruleMode = $ this -> _getoptConfig [ 'ruleMode' ] ; switch ( $ this -> _getoptConfig [ 'ruleMode' ] ) { case self :: MODE_ZEND : if ( is_array ( $ rules ) ) { $ this -> _addRulesModeZend ( $ rules ) ; break ; } // intentional fallthrough case self :: MODE_GNU : $ this -> _addRulesModeGnu ( $ rules ) ; break ; default : /**
                 * Call addRulesModeFoo() for ruleMode 'foo'.
                 * The developer should subclass Getopt and
                 * provide this method.
                 */ $ method = '_addRulesMode' . ucfirst ( $ ruleMode ) ; $ this -> $ method ( $ rules ) ; } $ this -> _parsed = false ; return $ this ; }
Define additional option rules.
These are appended to the rules defined when the constructor was called.

@param  array $rules
@return Zend_Console_Getopt Provides a fluent interface
Define additional option rules . These are appended to the rules defined when the constructor was called .