You are here

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

Returns true if an InputOption object exists by shortcut.

Parameters

string $name The InputOption shortcut:

Return value

bool true if the InputOption object exists, false otherwise

File

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

Class

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

Namespace

Symfony\Component\Console\Input

Code

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