Prints a list of all enabled options in this group
| 265 | |
| 266 | // Prints a list of all enabled options in this group |
| 267 | bool print() const { |
| 268 | bool found = false; |
| 269 | |
| 270 | for (auto itr = legalOptions.begin(); itr != legalOptions.end(); ++itr) { |
| 271 | auto optionItr = options.find(itr->second); |
| 272 | if (optionItr != options.end()) { |
| 273 | if (optionItr->second.present()) |
| 274 | printf("%s: `%s'\n", itr->first.c_str(), formatStringRef(optionItr->second.get()).c_str()); |
| 275 | else |
| 276 | printf("%s\n", itr->first.c_str()); |
| 277 | |
| 278 | found = true; |
| 279 | } |
| 280 | } |
| 281 | |
| 282 | return found; |
| 283 | } |
| 284 | |
| 285 | // Returns true if the specified option is documented |
| 286 | bool isDocumented(typename T::Option option) const { |