You are here

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

Gets an InputOption by shortcut.

Parameters

string $shortcut the Shortcut name:

Return value

InputOption An InputOption object

File

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

Class

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

Namespace

Symfony\Component\Console\Input

Code

public function getOptionForShortcut($shortcut) {
  return $this
    ->getOption($this
    ->shortcutToName($shortcut));
}