Skip to content

Commit

Permalink
Make --report imply --wconsole on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Mar 11, 2018
1 parent d4eeef0 commit 79c7c29
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/commandline_options.cpp
Expand Up @@ -178,7 +178,11 @@ commandline_options::commandline_options (const std::vector<std::string>& 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<unsigned int>(), "seeds the random number generator with number <arg>. Example: --rng-seed 0")
("screenshot", po::value<two_strings>()->multitoken(), "takes two arguments: <map> <output>. Saves a screenshot of <map> to <output> without initializing a screen. Editor must be compiled in for this to work."
#ifdef _WIN32
Expand Down
2 changes: 2 additions & 0 deletions src/wesnoth.cpp
Expand Up @@ -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" ||
Expand Down

0 comments on commit 79c7c29

Please sign in to comment.