nullboiler icon indicating copy to clipboard operation
nullboiler copied to clipboard

CLI: subcommand-level --help is silently ignored — the server starts instead of printing help

Open vernonstinebaker opened this issue 2 months ago • 0 comments

Environment

nullboiler v2026.5.29 (linux-aarch64, alpine container)

Steps

nullboiler server --help
nullboiler serve --help

Observed

Both ignore --help entirely and start the real server: DB opened/migrated, port bound. In an interactive terminal this looks like a hang; in scripts it spawns an unwanted server process. Discovered while probing CLI surface during #53 debugging (a server --help invocation hung an exec and contributed to the duplicate-process chaos in nullhub#86).

Top-level nullboiler --help works correctly (prints usage, exit 0) — the gap is subcommand-level handling.

Expected

--help / -h recognized at any position: print usage (including subcommand-specific flags when available) and exit 0, regardless of subcommand context.

Notes

The released usage text documents subcommands (validate-workflows, etc.), so per-subcommand help should at minimum fall back to the general usage rather than silently starting the server. Fix PR incoming.

vernonstinebaker avatar Sep 28 '26 14:09 vernonstinebaker