Skip to content
Myr

Help uses Short message if Long is not available

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Edgard Castro · committed by bep · parent e784a59 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:command.go+1 added-1 removed
246 unmodified lines
247248 if c.HasParent() {249 return c.parent.HelpTemplate()250 } else {251 return `{{.Long | trim}}251 return `{{with or .Long .Short }}{{. | trim}}{{end}}252{{if or .Runnable .HasSubCommands}}{{.UsageString}}{{end}}253`254 }255}
703 unmodified lines