Merge pull request #614 from techtonik/patch-1

Force console on Windows when --help is specified
This commit is contained in:
Ignacio R. Morelle 2016-03-03 18:28:37 -03:00
commit dbebd452cc

View file

@ -983,7 +983,7 @@ int main(int argc, char** argv)
// running before then if requested, so just perform a trivial search
// here and let program_options ignore the switch later.
for(size_t k = 0; k < args.size(); ++k) {
if(args[k] == "--wconsole") {
if(args[k] == "--wconsole" || args[k] == "--help") {
lg::enable_native_console_output();
break;
}