You are here

public function InputDefinition::addOptions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Input/InputDefinition.php \Symfony\Component\Console\Input\InputDefinition::addOptions()

Adds an array of InputOption objects.

Parameters

InputOption[] $options An array of InputOption objects:

1 call to InputDefinition::addOptions()
InputDefinition::setOptions in vendor/symfony/console/Input/InputDefinition.php
Sets the InputOption objects.

File

vendor/symfony/console/Input/InputDefinition.php, line 228

Class

InputDefinition
A InputDefinition represents a set of valid command line arguments and options.

Namespace

Symfony\Component\Console\Input

Code

public function addOptions($options = array()) {
  foreach ($options as $option) {
    $this
      ->addOption($option);
  }
}