Skip to content

Conversation

shadowspawn
Copy link
Member

Turning off short-options-groups makes -1 get parsed as an option instead of a negative number. Add the same exclusion for negative numbers as on other code paths through parser.

Fixes #312

Copy link
Member

@bcoe bcoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@bcoe bcoe merged commit ccc3634 into yargs:main Jul 31, 2025
8 checks passed
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.

Single-digit booleans not working as intended with "short-option-groups" set to false
2 participants