MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / doHelp

Function doHelp

lib/config/flags.cc:238–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238static 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
263static void doShowConfig()
264{

Callers

nothing calls this directly

Calls 3

namesMethod · 0.80
hasArgumentMethod · 0.45
defaultValueAsStringMethod · 0.45

Tested by

no test coverage detected