MCPcopy Create free account
hub / github.com/apple/foundationdb / printUsage

Function printUsage

fdbcli/Util.actor.cpp:40–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void 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
49ACTOR Future<std::string> getSpecialKeysFailureErrorMessage(Reference<ITransaction> tr) {
50 // hold the returned standalone object's memory

Calls 6

printfFunction · 0.85
fprintfFunction · 0.85
findMethod · 0.45
toStringMethod · 0.45
endMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected