From 79c7c29d221ddc9c1fe6ae7635847fa99af41203 Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Tue, 6 Mar 2018 23:02:16 -0500 Subject: [PATCH] Make --report imply --wconsole on Windows --- src/commandline_options.cpp | 6 +++++- src/wesnoth.cpp | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/commandline_options.cpp b/src/commandline_options.cpp index c749c86dc63c0..a7d1d425d8810 100644 --- a/src/commandline_options.cpp +++ b/src/commandline_options.cpp @@ -178,7 +178,11 @@ commandline_options::commandline_options (const std::vector& args) " Implies --wconsole." #endif // _WIN32 ) - ("report,R", "initializes game directories, prints build information suitable for use in bug reports, and exits.") + ("report,R", "initializes game directories, prints build information suitable for use in bug reports, and exits." +#ifdef _WIN32 + " Implies --wconsole." +#endif // _WIN32 + ) ("rng-seed", po::value(), "seeds the random number generator with number . Example: --rng-seed 0") ("screenshot", po::value()->multitoken(), "takes two arguments: . Saves a screenshot of to without initializing a screen. Editor must be compiled in for this to work." #ifdef _WIN32 diff --git a/src/wesnoth.cpp b/src/wesnoth.cpp index 2167a373cbb36..ae4e221e09db1 100644 --- a/src/wesnoth.cpp +++ b/src/wesnoth.cpp @@ -1035,6 +1035,8 @@ int main(int argc, char** argv) args[k] == "--logdomains" || args[k] == "--path" || args[k] == "--render-image" || + args[k] == "--report" || + args[k] == "-R" || args[k] == "--screenshot" || args[k] == "--data-path" || args[k] == "--userdata-path" ||