| 591 | } |
| 592 | |
| 593 | void printHelpOverview() { |
| 594 | printf("\nList of commands:\n\n"); |
| 595 | for (const auto& [command, help] : helpMap) { |
| 596 | if (help.short_desc.size()) |
| 597 | printf(" %s:\n %s\n", command.c_str(), help.short_desc.c_str()); |
| 598 | } |
| 599 | printf("\nFor information on a specific command, type `help <command>'."); |
| 600 | printf("\nFor information on escaping keys and values, type `help escaping'."); |
| 601 | printf("\nFor information on available options, type `help options'.\n\n"); |
| 602 | } |
| 603 | |
| 604 | void printHelp(StringRef command) { |
| 605 | auto i = helpMap.find(command.toString()); |
no test coverage detected