mirror of
https://github.com/spf13/cobra.git
synced 2025-05-05 07:22:51 +00:00
Update command.go (#2248)
Fix spelling in the help output. topcis -> topics
This commit is contained in:
parent
1995054b00
commit
4f9ef8cdbb
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user