| 602 | } |
| 603 | |
| 604 | void printHelp(StringRef command) { |
| 605 | auto i = helpMap.find(command.toString()); |
| 606 | if (i != helpMap.end() && i->second.short_desc.size()) { |
| 607 | printf("\n%s\n\n", i->second.usage.c_str()); |
| 608 | auto cstr = i->second.short_desc.c_str(); |
| 609 | printf("%c%s.\n", toupper(cstr[0]), cstr + 1); |
| 610 | if (!i->second.long_desc.empty()) { |
| 611 | printf("\n"); |
| 612 | printAtCol(i->second.long_desc.c_str(), 80); |
| 613 | } |
| 614 | printf("\n"); |
| 615 | } else |
| 616 | printf("I don't know anything about `%s'\n", formatStringRef(command).c_str()); |
| 617 | } |
| 618 | |
| 619 | int printStatusFromJSON(std::string const& jsonFileName) { |
| 620 | try { |
no test coverage detected