UsageTemplate returns usage template for the command. This function is kept for backwards-compatibility reasons.
()
| 590 | // UsageTemplate returns usage template for the command. |
| 591 | // This function is kept for backwards-compatibility reasons. |
| 592 | func (c *Command) UsageTemplate() string { |
| 593 | if c.usageTemplate != nil { |
| 594 | return c.usageTemplate.tmpl |
| 595 | } |
| 596 | |
| 597 | if c.HasParent() { |
| 598 | return c.parent.UsageTemplate() |
| 599 | } |
| 600 | return defaultUsageTemplate |
| 601 | } |
| 602 | |
| 603 | // HelpTemplate return help template for the command. |
| 604 | // This function is kept for backwards-compatibility reasons. |