Skip to content

Conversation

@ConnorBerghoffer
Copy link

Single dash negative flags like -no-flag were incorrectly parsing as boolean negation. Now only double dash --no-flag syntax works for negation, which matches standard CLI conventions.

Fixes #209

Single dash negative flags like -no-flag were incorrectly parsing as boolean negation. Now only double dash --no-flag syntax works for negation, which matches standard CLI conventions.

Fixes unjs#209
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Negative flag parsing too permissive (e.g. --no-b-alias, -no-boolean)

1 participant