fix: --version/--help/unknown-arg handling; sync 10 translated READMEs - #28
Merged
Conversation
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]
Merged
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>
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.
Two follow-ups from the v0.8.1 dogfood:
--versionhang 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.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.mdsnippet verbatim English everywhere; zh-TW scanned for simplified characters (none); pure insertions — 0 deletions.Verification
npm test→ 301/301 · live:--version→0.8.1, bogus arg → exit 1 + usage · grep across all 10 files: compress=3, codex=1, AGENTS.md snippet=1 each.