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

Function printHelp

fdbcli/fdbcli.actor.cpp:604–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602}
603
604void 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
619int printStatusFromJSON(std::string const& jsonFileName) {
620 try {

Callers 1

fdbcli.actor.cppFile · 0.85

Calls 9

printfFunction · 0.85
printAtColFunction · 0.85
formatStringRefFunction · 0.85
findMethod · 0.45
toStringMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45
c_strMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected