mirror of
https://github.com/spf13/cobra
synced 2024-11-24 22:57:12 +00:00
Keep only one newline between Aliases and Flags in help (#410)
Fix #409
This commit is contained in:
parent
5deb57bbca
commit
9350054794
1 changed files with 1 additions and 2 deletions
|
@ -341,8 +341,7 @@ func (c *Command) UsageTemplate() string {
|
||||||
{{ .CommandPath}} [command]{{end}}{{if gt .Aliases 0}}
|
{{ .CommandPath}} [command]{{end}}{{if gt .Aliases 0}}
|
||||||
|
|
||||||
Aliases:
|
Aliases:
|
||||||
{{.NameAndAliases}}
|
{{.NameAndAliases}}{{end}}{{if .HasExample}}
|
||||||
{{end}}{{if .HasExample}}
|
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
{{ .Example }}{{end}}{{if .HasAvailableSubCommands}}
|
{{ .Example }}{{end}}{{if .HasAvailableSubCommands}}
|
||||||
|
|
Loading…
Reference in a new issue