Skip to content

fix(usage): move usage rendering to getopt package#38

Merged
brandon1024 merged 1 commit into
mainfrom
usage
May 11, 2026
Merged

fix(usage): move usage rendering to getopt package#38
brandon1024 merged 1 commit into
mainfrom
usage

Conversation

@brandon1024

Copy link
Copy Markdown
Owner

This revision moves much of the flag rendering logic out of the base package and into getopt (PrintDefaults). This is done for a variety of reasons, but primarily to ensure that invocations of PrintDefaults render flag usage in a consistent manner.

This revision also includes a bunch of smaller fixes:

  • add additional tests
  • improve code documentation
  • correct a bug that prevents ErrShowHelp from being respected

This revision moves much of the flag rendering logic out of the base
package and into getopt (PrintDefaults). This is done for a variety of
reasons, but primarily to ensure that invocations of PrintDefaults
render flag usage in a consistent manner.

This revision also includes a bunch of smaller fixes:

- add additional tests
- improve code documentation
- correct a bug that prevents ErrShowHelp from being respected
@brandon1024 brandon1024 merged commit ebef4c1 into main May 11, 2026
1 check passed
@brandon1024 brandon1024 deleted the usage branch May 11, 2026 14:54
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