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

Function printHelpOverview

fdbcli/fdbcli.actor.cpp:593–602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

591}
592
593void 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
604void printHelp(StringRef command) {
605 auto i = helpMap.find(command.toString());

Callers 1

fdbcli.actor.cppFile · 0.85

Calls 3

printfFunction · 0.85
sizeMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected