dotnet / dotnet/command-line-api
Empty flags cannibalize each other
Open
- Dominant language
- C#
- Stars
- 3.7k
- Forks
- 428
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
Assessment
This issue has not been assessed yet.