Repository navigation
feat(cli): open --help and --version with an ASCII header - #34
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
--versionintroduces the tool the same way. Everything below that is the screen it was.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 --helpstays bare too, since the decorator only draws over a help document that lists subcommands.Colour is asked of
Stdioand the configuration rather than ofprocess, so a pipe, a terminal andNO_COLORare 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