Skip to content

CLI numeric options accept negative/NaN/out-of-range values #8

Description

@royalpinto007

Problem

--top -1 yields partial output, --tool-result-cap -5 flags everything as bloat, --fail-over-ratio 5/nan never fires despite help text saying (0-1).

Where

src/ctxlens/cli.py (typer options with no range validation).

Acceptance

Add a failing test first invoking analyze with each bad value, expecting exit code 2 instead of exit 0 with garbage. Then fix.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions