()
| 63 | } |
| 64 | |
| 65 | func (c *Cmd) hasSubcommand() bool { |
| 66 | if len(c.children) > 1 { |
| 67 | return true |
| 68 | } |
| 69 | if _, ok := c.children["help"]; !ok { |
| 70 | return len(c.children) > 0 |
| 71 | } |
| 72 | return false |
| 73 | } |
| 74 | |
| 75 | // HelpText returns the computed help of the command and its subcommands. |
| 76 | func (c Cmd) HelpText() string { |