addCommandOptions() public method

The existing command options stored in the builder are preserved.
See also: addCommandOption()
public addCommandOptions ( array $commandOptions ) : static
$commandOptions array The command options to add.
return static The current instance.
 public function testAddCommandOptions()
 {
     $this->builder->addCommandOption($option1 = new CommandOption('option1'));
     $this->builder->addCommandOptions(array($option2 = new CommandOption('option2'), $option3 = new CommandOption('option3')));
     $this->assertSame(array($option1, $option2, $option3), $this->builder->getCommandOptions());
 }