You are here

public function Input::hasOption in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Input/Input.php \Symfony\Component\Console\Input\Input::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

Overrides InputInterface::hasOption

File

vendor/symfony/console/Input/Input.php, line 217

Class

Input
Input is the base class for all concrete Input classes.

Namespace

Symfony\Component\Console\Input

Code

public function hasOption($name) {
  return $this->definition
    ->hasOption($name);
}