[Console] Improved the explanation of the hasOption() method

This commit is contained in:
Javier Eguiluz 2016-10-05 12:47:52 +02:00 committed by Fabien Potencier
parent f4fe36a4e1
commit 29226ef116

View File

@ -282,6 +282,9 @@ class InputDefinition
/** /**
* Returns true if an InputOption object exists by name. * Returns true if an InputOption object exists by name.
* *
* This method can't be used to check if the user included the option when
* executing the command (use getOption() instead).
*
* @param string $name The InputOption name * @param string $name The InputOption name
* *
* @return bool true if the InputOption object exists, false otherwise * @return bool true if the InputOption object exists, false otherwise