mirror of
https://github.com/spf13/cobra
synced 2025-04-01 04:19:15 +00:00
Update command.go (#2248)
Fix spelling in the help output. topcis -> topics
This commit is contained in:
parent
1995054b00
commit
4f9ef8cdbb
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue