| 306 | |
| 307 | |
| 308 | static 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 | |
| 324 | static void checkFromWorldFile(const std::string& option, bool fromWorldFile) { |
no test coverage detected