Force console on Windows when --help is specified

This commit is contained in:
anatoly techtonik 2016-03-02 16:19:20 +03:00
parent d9326e13bf
commit 1516ab6fde

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" or args[k] == "--help") {
lg::enable_native_console_output();
break;
}