Skip to content

feat(cli): --version / -v flag#53

Merged
pablostanley merged 1 commit intomainfrom
feat/cli-version
Apr 19, 2026
Merged

feat(cli): --version / -v flag#53
pablostanley merged 1 commit intomainfrom
feat/cli-version

Conversation

@pablostanley
Copy link
Copy Markdown
Owner

Summary

  • designteam --version / -v now print the CLI's package.json version and exit 0. Previously they hit the "Unknown command" path and exited 1.
  • Standard CLI convention; two-line dispatch fix at the top of main().
  • --help picks up a Global flags section documenting --version/-v + --help/-h.
  • New version eval asserts both flags match package.json so a future dispatch reorder can't silently break this.

Test plan

  • pnpm eval11 passed (new version scenario)
  • pnpm test — 463 passed
  • Manual: designteam --version and designteam -v both print 0.5.1 and exit 0

🤖 Generated with Claude Code

Trivial DX miss from v0.13 polish — `designteam --version` exited 1
with "Unknown command" instead of printing 0.5.1. Standard CLI
convention, two-line dispatch fix.

- cli/index.mjs: early dispatch for --version / -v reads the root
  package.json version and prints + exits 0.
- --help gets a "Global flags" section that documents both flags
  and --help/-h alongside.
- evals/scenarios/version.mjs: asserts both flags match package.json
  so future dispatch reorderings can't silently break this.

11 evals now.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
designteam Ready Ready Preview, Comment Apr 19, 2026 7:55am

Request Review

@pablostanley pablostanley merged commit 3e843f3 into main Apr 19, 2026
3 checks passed
@pablostanley pablostanley deleted the feat/cli-version branch April 19, 2026 08:07
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