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

Method printHelpString

fdbcli/fdbcli.actor.cpp:306–318  ·  view source on GitHub ↗

Prints a help string for each option in this group. Any options with no comment are excluded from this help string. Lines are wrapped to 80 characters.

Source from the content-addressed store, hash-verified

304 // Prints a help string for each option in this group. Any options with no comment
305 // are excluded from this help string. Lines are wrapped to 80 characters.
306 void printHelpString() const {
307 for (auto itr = legalOptions.begin(); itr != legalOptions.end(); ++itr) {
308 if (isDocumented(itr->second)) {
309 FDBOptionInfo info = T::optionInfo.getMustExist(itr->second);
310 std::string helpStr = info.name + " - " + info.comment;
311 if (info.hasParameter)
312 helpStr += " " + info.parameterComment;
313 helpStr += "\n";
314
315 printAtCol(helpStr.c_str(), 80);
316 }
317 }
318 }
319 };
320
321 OptionGroup<FDBTransactionOptions> transactionOptions;

Callers

nothing calls this directly

Calls 4

printAtColFunction · 0.85
beginMethod · 0.45
endMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected