function InputDefinition::negationToName
Returns the InputOption name given a negation.
@internal
Throws
InvalidArgumentException When option given does not exist
File
-
vendor/
symfony/ console/ Input/ InputDefinition.php, line 345
Class
- InputDefinition
- A InputDefinition represents a set of valid command line arguments and options.
Namespace
Symfony\Component\Console\InputCode
public function negationToName(string $negation) : string {
if (!isset($this->negations[$negation])) {
throw new InvalidArgumentException(\sprintf('The "--%s" option does not exist.', $negation));
}
return $this->negations[$negation];
}