Skip to content

Add argument parser unit coverage#535

Open
Kevinjohn wants to merge 1 commit into
openai:mainfrom
Kevinjohn:test/args-parser-coverage
Open

Add argument parser unit coverage#535
Kevinjohn wants to merge 1 commit into
openai:mainfrom
Kevinjohn:test/args-parser-coverage

Conversation

@Kevinjohn

Copy link
Copy Markdown

Argument parsing and raw command tokenization have no direct unit coverage, making small CLI parsing regressions harder to isolate.

Summary

Add focused unit coverage for:

  • separate and inline long-option values
  • boolean values and short aliases
  • unknown-option preservation
  • -- passthrough handling
  • missing option values
  • quoted text
  • escaped spaces, quotes, and backslashes
  • trailing backslashes

This is a test-only change; production behavior is unchanged.

Validation

  • node --test tests/args.test.mjs: 9 passed
  • node --test tests/*.test.mjs: 100 passed
  • git diff --check: clean

Actual screenshot

Focused parser tests — actual terminal output

Nine focused argument parser and tokenization tests passing in the terminal

@Kevinjohn
Kevinjohn marked this pull request as ready for review July 19, 2026 23:03
@Kevinjohn
Kevinjohn requested a review from a team July 19, 2026 23:03
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.

1 participant