Skip to content

fix: --version/--help/unknown-arg handling; sync 10 translated READMEs - #28

Merged
kevintseng merged 1 commit into
mainfrom
claude/version-flag-readme-sync
Aug 12, 2026
Merged

fix: --version/--help/unknown-arg handling; sync 10 translated READMEs#28
kevintseng merged 1 commit into
mainfrom
claude/version-flag-readme-sync

Conversation

@kevintseng

Copy link
Copy Markdown
Collaborator

Two follow-ups from the v0.8.1 dogfood:

  1. --version hang fixed. Anything that wasn't a known subcommand fell through to starting the MCP server on stdio, waiting on stdin forever. Now: --version/-v → version; --help/-h/help → usage; unknown arg → usage on stderr + exit 1. Server starts only with no args (how MCP clients invoke it). 4 regression tests spawn the real binary with stdin closed, so a regression back to server-start times out instead of passing.

  2. Translated READMEs synced. All 10 language files gain the "Pipe filter (any agent CLI)" and "OpenAI Codex CLI (on-demand)" sections (previously English-only). Commands/paths/AGENTS.md snippet verbatim English everywhere; zh-TW scanned for simplified characters (none); pure insertions — 0 deletions.

Verification

npm test301/301 · live: --version0.8.1, bogus arg → exit 1 + usage · grep across all 10 files: compress=3, codex=1, AGENTS.md snippet=1 each.

The CLI treated anything that wasn't setup/doctor/status/compress as "start
the MCP server on stdio" — so `toonify-mcp --version` hung forever waiting
on stdin. Now --version/-v prints the version, --help/-h/help prints usage,
and an unknown argument prints usage to stderr and exits 1. The server
starts only with no arguments (how MCP clients invoke it).

Also adds the "Pipe filter (any agent CLI)" and "OpenAI Codex CLI
(on-demand)" sections to all 10 translated READMEs (zh-TW, ja, es, fr, de,
ko, ru, pt, vi, id) — previously English-only. Commands, paths, and the
AGENTS.md snippet stay verbatim English in every translation; zh-TW scanned
for simplified characters (none).

[Verified-By: `npm test` -> "Tests: 301 passed, 301 total" exit 0; live:
dist --version -> "0.8.1" exit 0, --help exit 0, bogus-cmd -> exit 1 with
usage on stderr, compress pipe still works; README greps: compress>=3,
codex>=1, AGENTS.md snippet present in all 10 files; zh-TW
simplified-character scan -> no matches]
@kevintseng
kevintseng merged commit 474d536 into main Aug 12, 2026
7 checks passed
@kevintseng
kevintseng deleted the claude/version-flag-readme-sync branch August 12, 2026 06:42
@kevintseng kevintseng mentioned this pull request Aug 12, 2026
kevintseng added a commit that referenced this pull request Aug 12, 2026
Cuts 0.8.2 from [Unreleased]: the --version/--help/unknown-arg CLI fix
(no more hanging on stdin) and the 10 translated READMEs gaining the pipe
filter and Codex sections (#28).

Version: package.json, package-lock.json, .claude-plugin/plugin.json
0.8.1 -> 0.8.2; CHANGELOG [Unreleased] -> [0.8.2] - 2026-08-12.

[Verified-By: fresh run on this branch — `npm ci` -> exit 0, "found 0
vulnerabilities"; `npm run build` -> exit 0; `npm test` -> "Tests: 301
passed, 301 total" exit 0; `npm audit` -> "found 0 vulnerabilities" exit 0;
smoke: dist --version -> "0.8.2"]

Co-authored-by: KT <PCIRCLE-AI@users.noreply.github.com>
kevintseng pushed a commit that referenced this pull request Aug 16, 2026
… 10 translated READMEs

Both were added to README.md in earlier commits (037663e, 88dd7fb) that
predate the README-sync PR (#28), so they never made it into any
translation — not just zh-TW. Image alt text is translated per locale.
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