Returns a vector of the names of all documented options
| 292 | |
| 293 | // Returns a vector of the names of all documented options |
| 294 | std::vector<std::string> getValidOptions() const { |
| 295 | std::vector<std::string> ret; |
| 296 | |
| 297 | for (auto itr = legalOptions.begin(); itr != legalOptions.end(); ++itr) |
| 298 | if (isDocumented(itr->second)) |
| 299 | ret.push_back(itr->first); |
| 300 | |
| 301 | return ret; |
| 302 | } |
| 303 | |
| 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. |