Repository navigation
Conversation
Member
|
This is a drive-by AI contribution. This may get looked at and used when the issue is prioritised. The human maintainer does not have time to review all AI heavy PRs that are opened. For more, see: yargs/yargs#2606 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When short-option-groups is false, -no-window currently creates a no-window
option instead of negating window. Recognize the configured negation prefix
after either one or two dashes in that mode, using the existing shared matcher
for parsing and unknown-option recognition.
The default grouped-short-option behavior is preserved. Tests cover custom
prefixes, aliases, arrays, unknown options, and disabled boolean negation.
Fixes #468
Validation: three regression cases failed before the fix. npm test passes all
367 tests, npm run check passes, npm run test:typescript passes 20 tests, and
npm run coverage passes after the main test suite (99.53% lines/statements,
97.24% branches). Deno passes 8 tests. Chromium passes two existing browser
fixture cases plus the new regression using an isolated local port; the stock
browser command could not use port 8080 because another workspace service owns it.
AI assistance: researched and implemented with OpenAI Codex (gpt-6.1-sol),
with independent review by another Codex agent. No human code review or certification is claimed.