codex-plugin-cc icon indicating copy to clipboard operation
codex-plugin-cc copied to clipboard

Add argument parser unit coverage

Open Kevinjohn opened this issue 4 months ago • 0 comments

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 avatar Jul 19 '26 22:07 Kevinjohn