Skip to content

Fix short and double dash - #568

Merged
shadowspawn merged 3 commits into
yargs:mainfrom
shadowspawn:fix-short-and-double-dash
Nov 6, 2026
Merged

shadowspawn merged 3 commits into
yargs:mainfrom
shadowspawn:fix-short-and-double-dash

Conversation

@shadowspawn

Copy link
Copy Markdown
Member

A short option which could take an option-value (i.e. not boolean or count) was consuming a following --.

Fixes: #566

The relevant change is a simple change in the third commit, the earlier two tidy up lint and format issues. The short and long option code paths are not as symmetrical as they could be, but I kept the change simple.

@shadowspawn
shadowspawn merged commit 6b2b58e into yargs:main Nov 6, 2026
8 checks passed
@shadowspawn
shadowspawn deleted the fix-short-and-double-dash branch November 6, 2026 21:14
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.

Bare -- is consumed as the value of a preceding short option

1 participant