You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Typed option definitions are not enforced when the option is passed without a value #38
An option passed without a value is parsed as true. Command::validateDefinitions() skips any value that is not a string (src/Command.php:367), so a typed option silently passes validation and the command receives a bool where it expects a numeric string.
Expected: when a definition declares a type other than the implicit string, an option given without a value should fail validation with something like option "limit" must be of type int.. A definition may also want a way to say the option is a flag, so true stays valid for flags only.
Activity