(cmd string, sub_cmds []string, sub_disp string, cmd_help string)
| 53 | } |
| 54 | |
| 55 | func (h *Help) AddSubCommand(cmd string, sub_cmds []string, sub_disp string, cmd_help string) { |
| 56 | if subm, ok := h.sub_cmds[cmd]; ok { |
| 57 | subm[sub_disp] = cmd_help |
| 58 | } |
| 59 | if _, ok := h.sub_disp[cmd]; ok { |
| 60 | h.sub_disp[cmd] = append(h.sub_disp[cmd], sub_disp) |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | func (h *Help) GetCommands() []string { |
| 65 | return h.cmd_names |