Skip to content

Add custom help output for pflag#9

Merged
TyostoKarry merged 2 commits into
mainfrom
create-custom-help-output
Mar 22, 2026
Merged

Add custom help output for pflag#9
TyostoKarry merged 2 commits into
mainfrom
create-custom-help-output

Conversation

@TyostoKarry

Copy link
Copy Markdown
Owner

Replace the default pflag help text with a cleaner custom usage screen. Group flags by mode, options, and misc commands, and add examples to make the CLI easier to understand.

Replace the default pflag help text with a cleaner custom usage screen.
Group flags by mode, options, and misc commands, and add examples to
make the CLI easier to understand.
@TyostoKarry TyostoKarry self-assigned this Mar 22, 2026
Build the custom help text in memory and write it once so output errors
are handled cleanly and golangci-lint errcheck passes without
suppressing returned errors on every fmt.Fprintf call.
@TyostoKarry TyostoKarry merged commit 67a2ee1 into main Mar 22, 2026
2 checks passed
@TyostoKarry TyostoKarry deleted the create-custom-help-output branch March 22, 2026 13:04
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.

1 participant