command-line-api
command-line-api copied to clipboard
Empty flags cannibalize each other
Flag with value of an empty string ruins the entire command line input.
For example:
-o, with an empty string (""), will skip over it and grab the next flag.
-o "" -q "&color=red"
This makes -o contain "-q". "&color=red" then gets thrown away, because the '-q' flag never got called. This then causes cascading issues.