Skip to content

fix(cli): warn on unknown short flags#43

Merged
yusukebe merged 1 commit into
yusukebe:mainfrom
yearth:fix/unknown-short-flag
Jul 21, 2026
Merged

fix(cli): warn on unknown short flags#43
yusukebe merged 1 commit into
yusukebe:mainfrom
yearth:fix/unknown-short-flag

Conversation

@yearth

@yearth yearth commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • warn when unknown short flags are ignored
  • preserve single-dash vs double-dash spelling for one-character flags
  • keep non-strict parsing and existing long-flag suggestions unchanged

Motivation

Unknown -Z currently exits successfully with normal output but empty stderr, unlike unknown long flags. This makes unsupported or mistyped curl-style flags silently cost an agent another retry.

Tests

  • bunx tsc --noEmit
  • bun run format
  • bun test (91 pass)
  • bun run build

@yusukebe yusukebe left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@yusukebe

Copy link
Copy Markdown
Owner

@yearth

Thank you! Merging.

@yusukebe
yusukebe merged commit 0c91d49 into yusukebe:main Jul 21, 2026
1 check passed
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.

2 participants