original_string: public function addOptions(array $options)
      {
          foreach ($options as $name => $params) {
              if ($params instanceof ConsoleInputOption) {
                  $name = $params;
                  $params = [];
              }
              $this->addOption($name, $params);
          }
  
          return $this;
      }
code: public function addOptions(array $options)
      {
          foreach ($options as $name => $params) {
              if ($params instanceof ConsoleInputOption) {
                  $name = $params;
                  $params = [];
              }
              $this->addOption($name, $params);
          }
  
          return $this;
      }
code_tokens: public function addOptions ( array $ options ) { foreach ( $ options as $ name => $ params ) { if ( $ params instanceof ConsoleInputOption ) { $ name = $ params ; $ params = [ ] ; } $ this -> addOption ( $ name , $ params ) ; } return $ this ; }
docstring: 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
docstring_tokens: 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 .