8000 feat(cli): open --help and --version with an ASCII header by dominikwozniak · Pull Request #34 · dominikwozniak/dw-mc · GitHub
[go: up one dir, main page]

Skip to content

feat(cli): open --help and --version with an ASCII header - #34

Merged
dominikwozniak merged 1 commit into
mainfrom
feat/32-help-header
Sep 16, 2026
Merged

dominikwozniak merged 1 commit into
mainfrom
feat/32-help-header

Conversation

@dominikwozniak
Copy link
Copy Markdown
Owner

Closes #32.

The root help screen is the one screen I always read, and it said nothing about which build answers me or where the project lives. It now opens on the tool's name drawn in plain ASCII, with the version and the repository beside it, and --version introduces the tool the same way. Everything below that is the screen it was.

     _
  __| |__      __       _ __ ___    ___     mission control 0.0.0
 / _` |\ \ /\ / / ___  | '_ ` _ \  / __|    github.com/dominikwozniak/dw-mc
| (_| | \ V  V / |___| | | | | | || (__
 \__,_|  \_/\_/        |_| |_| |_| \___|

The header rides on CliOutput.Formatter, so no command knows it exists, and the formatter is swapped for the two built-in flags rather than for the whole run: a failed parse prints its help screen through that same formatter, and a logo above an error only buries the error. dw-mc status --help stays bare too, since the decorator only draws over a help document that lists subcommands.

Colour is asked of Stdio and the configuration rather than of process, so a pipe, a terminal and NO_COLOR are one rule for the whole screen and a test can put any of the three answers in. The logo is plain ASCII either way.

The version and the project URL sit side by side in the CLI module, so changing either is one edit in one file.

🤖 Generated with Claude Code

The root help screen is the one screen I always read, and it said nothing
about which build answers me or where the project lives. It now opens on
the tool's name drawn in ASCII, with the version and the repository beside
it.

The formatter is swapped for the two built-in flags rather than for the
whole run: a failed parse prints its help through the same formatter, and
a logo above an error only buries the error.

Closes #32

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@dominikwozniak
dominikwozniak merged commit e2ad560 into main Sep 16, 2026
1 check passed
@dominikwozniak
dominikwozniak deleted the feat/32-help-header branch September 16, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

An ASCII header on the root help screen and --version

1 participant

0