codex-plugin-cc
codex-plugin-cc copied to clipboard
Add argument parser unit coverage
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 passednode --test tests/*.test.mjs: 100 passedgit diff --check: clean
Actual screenshot
Focused parser tests — actual terminal output