Register registers a new help command.
(cmd subcommands.Command)
| 120 | |
| 121 | // Register registers a new help command. |
| 122 | func (h *Help) Register(cmd subcommands.Command) { |
| 123 | h.commands = append(h.commands, cmd) |
| 124 | } |
| 125 | |
| 126 | // helpCommandWrapper implements subcommands.Command by wrapping another |
| 127 | // subcommands.Command and adding -h and -help flags. |