Skip to content

CLI --mode is a free string, typos die with a traceback #14

Description

@royalpinto007

Problem

CLI --mode is a free string, so --mode hybird dies deep inside with a traceback instead of a usage error listing valid modes.

Where

src/tenantq/cli.py (typer Option("hybrid") with no Choice) feeding search.py's unknown mode ValueError.

Acceptance

Add a failing CLI-runner test first with --mode hybird, expecting a non-zero exit plus a usage-style error listing valid modes. 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