Skip to content

Commit

Permalink
Minor fixes to --help text
Browse files Browse the repository at this point in the history
More importantly, --log-precise's description is now more
platform-agnostic (there isn't a "logfile" on platforms other than
Windows).
  • Loading branch information
irydacea committed Oct 20, 2020
1 parent 6c6dee0 commit 0bfb910
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/man/wesnoth.6
Expand Up @@ -173,7 +173,7 @@ unless combined with the
option.
.TP
.B --log-precise
shows the timestamps in the logfile with more precision.
shows the timestamps in log output with more precision.
.TP
.B --log-strict
sets the strict level of the logger. Any messages sent to log domains
Expand Down
4 changes: 2 additions & 2 deletions src/commandline_options.cpp
Expand Up @@ -247,12 +247,12 @@ commandline_options::commandline_options (const std::vector<std::string>& args)
po::options_description logging_opts("Logging options");
logging_opts.add_options()
("logdomains", po::value<std::string>()->implicit_value(std::string()), "lists defined log domains (only the ones containing <arg> filter if such is provided) and exits.")
("log-error", po::value<std::string>(), "sets the severity level of the specified log domain(s) to 'error'. <arg> should be given as comma separated list of domains, wildcards are allowed. Example: --log-error=network,gui/*,engine/enemies")
("log-error", po::value<std::string>(), "sets the severity level of the specified log domain(s) to 'error'. <arg> should be given as a comma-separated list of domains, wildcards are allowed. Example: --log-error=network,gui/*,engine/enemies")
("log-warning", po::value<std::string>(), "sets the severity level of the specified log domain(s) to 'warning'. Similar to --log-error.")
("log-info", po::value<std::string>(), "sets the severity level of the specified log domain(s) to 'info'. Similar to --log-error.")
("log-debug", po::value<std::string>(), "sets the severity level of the specified log domain(s) to 'debug'. Similar to --log-error.")
("log-none", po::value<std::string>(), "sets the severity level of the specified log domain(s) to 'none'. Similar to --log-error.")
("log-precise", "shows the timestamps in the logfile with more precision.")
("log-precise", "shows the timestamps in log output with more precision.")
;

po::options_description multiplayer_opts("Multiplayer options");
Expand Down

0 comments on commit 0bfb910

Please sign in to comment.