Skip to content

Multiple CLI commands exit 0 on error conditions #425

@retran

Description

@retran

Description

Several CLI subcommands exit with code 0 despite encountering errors or requiring arguments they don't have:

Command Behavior Expected
marketplace search <query> Exits 0 on auth failure Exit 1
eval list Exits 1 but error message unclear (requires file arg, not documented) Exit 0 with list, or clear help
widget init MyWidget Requires -p flag not mentioned in help Work standalone or clear error
tui without -p "could not open a new TTY" instead of "required flag: -p" Correct error message

Expected

Non-zero exit codes on all error conditions. Clear error messages indicating what's wrong.

Severity

Low — affects CI/scripting reliability.

Reproducing test cases

  • cli-commands-test-cases.md § 7.5, 8.1, 4.2, 9.3, 15.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions