Skip to content

Add Typer range validation to numeric CLI options#39

Merged
alexkroman merged 2 commits into
mainfrom
claude/dependency-api-usage-05GF5
Jun 8, 2026
Merged

Add Typer range validation to numeric CLI options#39
alexkroman merged 2 commits into
mainfrom
claude/dependency-api-usage-05GF5

Conversation

@alexkroman

Copy link
Copy Markdown
Collaborator

Let Typer/Click validate documented numeric ranges pre-flight instead of
deferring to the API, matching how the CLI already delegates enum/choice
validation to Typer:

  • transcribe: --content-safety-confidence (25-100), --speech-threshold (0-1),
    --speakers-expected (>=1)
  • stream: --end-of-turn-confidence-threshold (0-1), --vad-threshold (0-1),
    --voice-focus-threshold (0-1), --max-speakers (>=1)

Regenerated the affected --help snapshots.

https://claude.ai/code/session_012AxuuPVkJJxNJtmZamUUna

claude and others added 2 commits June 8, 2026 01:50
Let Typer/Click validate documented numeric ranges pre-flight instead of
deferring to the API, matching how the CLI already delegates enum/choice
validation to Typer:

- transcribe: --content-safety-confidence (25-100), --speech-threshold (0-1),
  --speakers-expected (>=1)
- stream: --end-of-turn-confidence-threshold (0-1), --vad-threshold (0-1),
  --voice-focus-threshold (0-1), --max-speakers (>=1)

Regenerated the affected --help snapshots.

https://claude.ai/code/session_012AxuuPVkJJxNJtmZamUUna
@alexkroman alexkroman merged commit 3351224 into main Jun 8, 2026
10 checks passed
@alexkroman alexkroman deleted the claude/dependency-api-usage-05GF5 branch June 8, 2026 01: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.

2 participants