| 236 | } |
| 237 | |
| 238 | static void doHelp() |
| 239 | { |
| 240 | std::cout << "FluxEngine options:\n"; |
| 241 | std::cout |
| 242 | << "Note: options are processed left to right and order matters!\n"; |
| 243 | for (auto flag : all_flags) |
| 244 | { |
| 245 | std::cout << " "; |
| 246 | bool firstname = true; |
| 247 | for (auto name : flag->names()) |
| 248 | { |
| 249 | if (!firstname) |
| 250 | std::cout << ", "; |
| 251 | std::cout << name; |
| 252 | firstname = false; |
| 253 | } |
| 254 | |
| 255 | if (flag->hasArgument()) |
| 256 | std::cout << " <default: \"" << flag->defaultValueAsString() |
| 257 | << "\">"; |
| 258 | std::cout << ": " << flag->helptext() << std::endl; |
| 259 | } |
| 260 | exit(0); |
| 261 | } |
| 262 | |
| 263 | static void doShowConfig() |
| 264 | { |
nothing calls this directly
no test coverage detected