| 38 | } |
| 39 | |
| 40 | void printUsage(StringRef command) { |
| 41 | const auto& helpMap = CommandFactory::commands(); |
| 42 | auto i = helpMap.find(command.toString()); |
| 43 | if (i != helpMap.end()) |
| 44 | printf("Usage: %s\n", i->second.usage.c_str()); |
| 45 | else |
| 46 | fprintf(stderr, "ERROR: Unknown command `%s'\n", command.toString().c_str()); |
| 47 | } |
| 48 | |
| 49 | ACTOR Future<std::string> getSpecialKeysFailureErrorMessage(Reference<ITransaction> tr) { |
| 50 | // hold the returned standalone object's memory |
no test coverage detected