Hidden Commands Should be Ignored When Calculating Use Indentation #1272
Labels
good-first-issue
Issues that a new contributor could make a PR for
kind/bug
A bug in cobra; unintended behavior
lifecycle/needs-pr
Ready for a PR from the community
The Command's AddCommand function incorrectly includes hidden commands in its calculation of the maximum lengths needed to display correctly formatted usage information. See the following: Command.go, line 1135
Any Command that has its Hidden field set to true should be ignored, otherwise the formatted usage is potentially wider than it needs to be.
The text was updated successfully, but these errors were encountered: