cobra
cobra copied to clipboard
Document SilenceUsage, Hidden
Neither SilenceUsage nor Hidden are documented. SilenceUsage deserves a mention under Alternative Error Handling because otherwise you'll get usage output on all errors. Hidden deserves mention under Markdown Docs and Man Docs as it enables a convenient hidden generate-docs command.
This needs a follow-up to check if still relevant.
This issue is being marked as stale due to a long period of inactivity
It would help to have examples and usage documented for Hidden.
The SilenceUsage was merged but later removed to shorten the readme; this was prior to the main readme being separated from the user guide. (see https://github.com/spf13/cobra/commit/e8e7fe03552f0645ccf4c507f38bcf88b1c2b2d6#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5L830)
I think this issue can remain open and we'd review a PR for it.
Closing #1376 as duplicate then.
@garthk this still worth looking into. I would be open totally asking a crack at it.