MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / extraUsage

Function extraUsage

src/bzfs/CmdLineOptions.cpp:308–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306
307
308static void extraUsage(const std::string& pname) {
309 char buffer[64];
310 printVersion();
311 std::cout << std::endl << "Usage: " << pname << ' ' << usageString << std::endl;
312 std::cout << std::endl << extraUsageString << std::endl << "Flag codes:" << std::endl;
313 const FlagTypeMap& flagMap = FlagType::getFlagMap();
314 FlagTypeMap::const_iterator it;
315 for (it = flagMap.begin(); it != flagMap.end(); ++it) {
316 snprintf(buffer, 64, "\t%2.2s %s\n",
317 (*it->second).flagAbbv.c_str(), (*it->second).flagName.c_str());
318 std::cout << buffer;
319 }
320 exit(0);
321}
322
323
324static void checkFromWorldFile(const std::string& option, bool fromWorldFile) {

Callers 1

parseMethod · 0.85

Calls 4

printVersionFunction · 0.85
c_strMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected