Mercurial > hg > cmmr2012-drupal-site
comparison vendor/symfony/console/Input/InputDefinition.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | a9cd425dd02b |
children |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
336 * @param string $shortcut The shortcut | 336 * @param string $shortcut The shortcut |
337 * | 337 * |
338 * @return string The InputOption name | 338 * @return string The InputOption name |
339 * | 339 * |
340 * @throws InvalidArgumentException When option given does not exist | 340 * @throws InvalidArgumentException When option given does not exist |
341 */ | 341 * |
342 private function shortcutToName($shortcut) | 342 * @internal |
343 */ | |
344 public function shortcutToName($shortcut) | |
343 { | 345 { |
344 if (!isset($this->shortcuts[$shortcut])) { | 346 if (!isset($this->shortcuts[$shortcut])) { |
345 throw new InvalidArgumentException(sprintf('The "-%s" option does not exist.', $shortcut)); | 347 throw new InvalidArgumentException(sprintf('The "-%s" option does not exist.', $shortcut)); |
346 } | 348 } |
347 | 349 |