Skip to content

Add top-level CLI info flags#48

Open
wowsofine wants to merge 1 commit into
discourse:mainfrom
wowsofine:codex/cli-info-flags
Open

Add top-level CLI info flags#48
wowsofine wants to merge 1 commit into
discourse:mainfrom
wowsofine:codex/cli-info-flags

Conversation

@wowsofine

Copy link
Copy Markdown

What changed

  • Added top-level --version / -v handling that prints the package version and exits.
  • Added top-level --help / -h handling with concise CLI usage text.
  • Added process-level regression tests for both flags.

Why

The CLI currently treats metadata flags as normal server startup arguments. That makes simple package checks such as discourse-mcp --version and discourse-mcp --help start the MCP server instead of returning CLI metadata.

Validation

  • npx --yes pnpm@10.14.0 build
  • npx --yes pnpm@10.14.0 typecheck
  • npx --yes pnpm@10.14.0 test
  • npx --yes pnpm@10.14.0 lint
  • node dist/index.js --version
  • node dist/index.js --help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant