You are here

public function InputDefinition::hasOption 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::hasOption()

Returns true if an InputOption object exists by name.

Parameters

string $name The InputOption name:

Return value

bool true if the InputOption object exists, false otherwise

1 call to InputDefinition::hasOption()
InputDefinition::getOption in vendor/symfony/console/Input/InputDefinition.php
Returns an InputOption by name.

File

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

Class

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

Namespace

Symfony\Component\Console\Input

Code

public function hasOption($name) {
  return isset($this->options[$name]);
}