go-flags icon indicating copy to clipboard operation
go-flags copied to clipboard

Feature request: Make the "hidden" flag more granular

Open kjacque opened this issue 5 years ago • 1 comments

I would like to be able to hide a command from the generated manpage only, but still display it in the help.

How about something like:

  • hidden:"man" or hidden:"manpage" hides the command from the manpage.
  • hidden:"help" hides the command from the help.
  • hidden:"all" hides the command from both.
  • Any other value for the flag defaults to "all"

kjacque avatar Jun 25 '20 17:06 kjacque

Sounds good. PR welcome.

jessevdk avatar Mar 21 '21 09:03 jessevdk