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
[BUG]: An empty argument after an option gives a PHP warning #66
When the token after an option is an empty string, Parser::parse() gives a PHP warning. The parser reads the first character of the next token to check for a -. An empty string has no first character.
The look-ahead $argv[$i + 1][0] !== '-' is in two places in handleArguments(). !str_starts_with($argv[$i + 1], '-') gives the same result for a token that is not empty, and no warning for an empty token.
Activity
[#66] - No warning for an empty argument after an option
niden commentedon Dec 4, 2026
Resolved in #67