Skip to content

fix: error handling for unknown metrics subcommands#140

Merged
ben-rogerson merged 4 commits intomainfrom
fix/metrics-unknown-subcommand-silent
May 9, 2026
Merged

fix: error handling for unknown metrics subcommands#140
ben-rogerson merged 4 commits intomainfrom
fix/metrics-unknown-subcommand-silent

Conversation

@ben-rogerson
Copy link
Copy Markdown
Owner

Summary

When users mistype a metrics subcommand, the CLI now provides helpful feedback (error message and usage info) and exits with code 1. Previously it silently succeeded with no output, leaving users unaware they had made a mistake.

Test plan

  • pnpm typecheck
  • pnpm lint
  • pnpm test

When users mistype a metrics subcommand, the CLI now provides helpful feedback (error message and usage info) and exits with code 1. Previously it silently succeeded with no output, leaving users unaware they had made a mistake.
@ben-rogerson ben-rogerson enabled auto-merge (squash) May 9, 2026 14:45
@ben-rogerson ben-rogerson merged commit 4bd214e into main May 9, 2026
1 check passed
@ben-rogerson ben-rogerson deleted the fix/metrics-unknown-subcommand-silent branch May 9, 2026 14:45
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