cobra icon indicating copy to clipboard operation
cobra copied to clipboard

Hidden Commands Should be Ignored When Calculating Use Indentation

Open simonjarcher opened this issue 4 years ago • 4 comments

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.

simonjarcher avatar Nov 02 '20 19:11 simonjarcher