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.
| 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; |
nothing calls this directly
no test coverage detected