Skip to content

Handle CLI version and unknown flags#311

Open
SyntaxHQDEV wants to merge 1 commit into
makenotion:mainfrom
SyntaxHQDEV:fix/cli-version-and-unknown-flags
Open

Handle CLI version and unknown flags#311
SyntaxHQDEV wants to merge 1 commit into
makenotion:mainfrom
SyntaxHQDEV:fix/cli-version-and-unknown-flags

Conversation

@SyntaxHQDEV

Copy link
Copy Markdown

Summary

  • add --version / -v handling to the CLI option parser
  • reject unknown top-level flags instead of silently ignoring them
  • keep existing --help behavior unchanged
  • print concise unknown-option errors without a stack trace

Fixes #309

Verification

  • npx vitest run scripts/server-options.test.ts
  • npm run build
  • node bin/cli.mjs --version
  • node bin/cli.mjs --definitely-not-a-real-flag
  • node bin/cli.mjs --help

Signed-off-by: SyntaxHQ <syntaxhq.dev@gmail.com>
@SyntaxHQDEV SyntaxHQDEV force-pushed the fix/cli-version-and-unknown-flags branch from 89381ce to 6926556 Compare June 12, 2026 00:57
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.

CLI version and unknown flags exit silently

1 participant