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
Description
Several CLI subcommands exit with code 0 despite encountering errors or requiring arguments they don't have:
marketplace search <query>eval listwidget init MyWidget-pflag not mentioned in helptuiwithout-pExpected
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