public function addOptions(array $options)
    {
        foreach ($options as $name => $params) {
            if ($params instanceof ConsoleInputOption) {
                $name = $params;
                $params = [];
            }
            $this->addOption($name, $params);
        }

        return $this;
    }
public function addOptions(array $options)
    {
        foreach ($options as $name => $params) {
            if ($params instanceof ConsoleInputOption) {
                $name = $params;
                $params = [];
            }
            $this->addOption($name, $params);
        }

        return $this;
    }
public function addOptions ( array $ options ) { foreach ( $ options as $ name => $ params ) { if ( $ params instanceof ConsoleInputOption ) { $ name = $ params ; $ params = [ ] ; } $ this -> addOption ( $ name , $ params ) ; } return $ this ; }
Add multiple options at once. Takes an array of option definitions.
The keys are used as option names, and the values as params for the option.

@param array $options Array of options to add.
@see \Cake\Console\ConsoleOptionParser::addOption()
@return $this
Add multiple options at once . Takes an array of option definitions . The keys are used as option names and the values as params for the option .