atc0005 / bridge

A small CLI utility used to find duplicate files
MIT License
6 stars 0 forks source link

Set flag.Usage to custom Help header func #31

Closed atc0005 closed 4 years ago

atc0005 commented 4 years ago

While reading over Fun with Flags I learned that the stdlib flag package supports displaying custom help text as a header or lead-in to the auto-generated list of options available to the user. This can be used to display branding, version details and a link back to the main project repo.

atc0005 commented 4 years ago

Note to self; starting point for CHANGELOG entry related to this work:

- Usage/branding details shown for invalid subcommands, flags or just general
  Help output
atc0005 commented 4 years ago

Really struggling with this one for some reason. Scratch notes below in case writing this out here helps to make things "click".


atc0005 commented 4 years ago

Some references that I've consulted thus far:

Some I've started looking over, but haven't finished with yet:

atc0005 commented 4 years ago

Regarding the references linked above: