1
0
Fork 0
mirror of https://github.com/spf13/cobra synced 2025-04-01 04:19:15 +00:00

Update command.go ()

Fix spelling in the help output.

topcis -> topics
This commit is contained in:
styee 2025-03-07 06:53:22 -08:00 committed by GitHub
parent 1995054b00
commit 4f9ef8cdbb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2025,7 +2025,7 @@ func defaultUsageFunc(w io.Writer, in interface{}) error {
fmt.Fprint(w, trimRightSpace(c.InheritedFlags().FlagUsages()))
}
if c.HasHelpSubCommands() {
fmt.Fprintf(w, "\n\nAdditional help topcis:")
fmt.Fprintf(w, "\n\nAdditional help topics:")
for _, subcmd := range c.Commands() {
if subcmd.IsAdditionalHelpTopicCommand() {
fmt.Fprintf(w, "\n %s %s", rpad(subcmd.CommandPath(), subcmd.CommandPathPadding()), subcmd.Short)