DisplayName returns the name to display in help text. Returns command Name() If CommandDisplayNameAnnoation is not set
()
| 1472 | // DisplayName returns the name to display in help text. Returns command Name() |
| 1473 | // If CommandDisplayNameAnnoation is not set |
| 1474 | func (c *Command) DisplayName() string { |
| 1475 | if displayName, ok := c.Annotations[CommandDisplayNameAnnotation]; ok { |
| 1476 | return displayName |
| 1477 | } |
| 1478 | return c.Name() |
| 1479 | } |
| 1480 | |
| 1481 | // UseLine puts out the full usage for a given command (including parents). |
| 1482 | func (c *Command) UseLine() string { |
no test coverage detected