bool hasOption(string $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).
bool hasOption(string $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).
string | $name | The InputOption name |
bool | true if the InputOption object exists, false otherwise |
Designed by : w10schools
service@w10schools.com
Please login to continue.