| 41 | {HELP_RESET, "reset"}}; |
| 42 | |
| 43 | static HelpType GetCommandHelpId(const char* token) { |
| 44 | assert(token != nullptr); |
| 45 | |
| 46 | for (std::size_t i = 0, n = std::size(command_help_desc); i < n; ++i) { |
| 47 | if (std::strcmp(command_help_desc[i].token, token) == 0) { |
| 48 | return command_help_desc[i].arguments; |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | return HELP_NONE; |
| 53 | } |
| 54 | |
| 55 | struct ModeDesc { |
| 56 | CommandType mode; |