bool
isRequired(string $option)
Returns whether an option is required. An option is required if it has been passed to {@link setRequired()}, but not to {@link setDefaults()}. That is, the option has been declared as required and no default value has been set.
Parameters string $option The name of the option. Return Value bool Whether the option is required.