aura --help lands on the exit-2 error path instead of printing help #20

Closed
opened 2026-06-04 22:25:49 +02:00 by Brummel · 0 comments
Owner

Found by the milestone fieldtest (docs/specs/fieldtest-milestone-walking-skeleton.md).

A newcomer's reflex first command, aura --help (and -h), is treated as an unknown subcommand: exit 2, no help text, just the one-line aura: usage: aura run on stderr, empty stdout. The usage line does name aura run, so discovery technically works, but the conventional --help affordance returns the error path. For a C22 'newcomer sees a populated trace' milestone the first-contact ergonomics are slightly off.

Fix (trivial, optional): make --help/-h print the usage to stdout with exit 0; keep unknown subcommands at exit 2.

Found by the milestone fieldtest (docs/specs/fieldtest-milestone-walking-skeleton.md). A newcomer's reflex first command, `aura --help` (and `-h`), is treated as an unknown subcommand: exit 2, no help text, just the one-line `aura: usage: aura run` on stderr, empty stdout. The usage line does name `aura run`, so discovery technically works, but the conventional --help affordance returns the error path. For a C22 'newcomer sees a populated trace' milestone the first-contact ergonomics are slightly off. Fix (trivial, optional): make --help/-h print the usage to stdout with exit 0; keep unknown subcommands at exit 2.
Brummel added the idea label 2026-06-04 22:25:49 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Brummel/Aura#20