Fix --logdomains in the help strings.

This commit is contained in:
Eric S. Raymond 2007-05-20 15:42:22 +00:00
parent f82b233c60
commit 409365bed6
2 changed files with 12 additions and 12 deletions

View File

@ -66,7 +66,7 @@ int main(int argc, char** argv)
<< " --log-error=\"domain1,domain2,...\", --log-warning=..., --log-info=...\n"
<< " sets the severity level of the debug domains.\n"
<< " \"all\" can be used to match any debug domain.\n"
<< " --logdomain List defined log domains and exit.\n";
<< " --logdomains List defined log domains and exit.\n";
return 0;
} else if(val == "--version" || val == "-v") {
std::cout << "Battle for Wesnoth "
@ -80,6 +80,11 @@ int main(int argc, char** argv)
std::cout << game_config::path
<< "\n";
return 0;
} else if(val == "--logdomains") {
// domain list is hardcoded here because I don't grok
// C++ well enough to add a log class hook to get it.
std::cerr << "general, ai, config, display, engine, network, filesystem, audio, paths\n";
return 0;
}
}
@ -167,11 +172,6 @@ int main(int argc, char** argv)
}
p = q;
}
} else if(val == "--logdomains") {
// domain list is hardcoded here because I don't grok
// C++ well enough to add a log class hook to get it.
std::cerr << "general, ai, config, display, engine, network, filesystem, audio. paths\n";
return 0;
} else if(val[0] == '-') {
std::cerr << "unknown option: " << val << "\n";
return 0;

View File

@ -1656,7 +1656,7 @@ static int play_game(int argc, char** argv)
<< " --log-error=\"domain1,domain2,...\", --log-warning=..., --log-info=...\n"
<< " sets the severity level of the debug domains.\n"
<< " \"all\" can be used to match any debug domain.\n"
<< " --logdomain List defined log domains and exit.\n"
<< " --logdomains List defined log domains and exit.\n"
<< " --nocache disables caching of game data.\n"
<< " --validcache assume that cache is valid (dangerous)\n"
<< " --nosound runs the game without sounds and music.\n"
@ -1725,11 +1725,6 @@ static int play_game(int argc, char** argv)
}
p = q;
}
} else if(val == "--logdomains") {
// domain list is hardcoded here because I don't grok
// C++ well enough to add a log class hook to get it.
std::cerr << "general, ai, config, display, engine, network, filesystem, audio. paths\n";
return 0;
} else if(val == "--compress" || val == "--decompress") {
if(argc != arg+3) {
std::cerr << "format of " << val << " command: " << val << " <input file> <output file>\n";
@ -1766,6 +1761,11 @@ static int play_game(int argc, char** argv)
std::cerr << "IO error: " << e.what() << "\n";
}
return 0;
} else if(val == "--logdomains") {
// domain list is hardcoded here because I don't grok
// C++ well enough to add a log class hook to get it.
std::cerr << "general, ai, config, display, engine, network, filesystem, audio, paths\n";
return 0;
}
}