mirror of https://github.com/OpenTTD/OpenTTD
(svn r8240) -Fix (r8013): Put the output of -h to stdout and not to stderr (through ShowInfo)
parent
d3a58ba36b
commit
95ccdeeac0
|
@ -174,7 +174,13 @@ static void showhelp(void)
|
|||
|
||||
p = GetDriverList(p, lastof(buf));
|
||||
|
||||
/* ShowInfo put output to stderr, but version information should go
|
||||
* to stdout; this is the only exception */
|
||||
#if !defined(WIN32) && !defined(WIN64)
|
||||
printf("%s\n", buf);
|
||||
#else
|
||||
ShowInfo(buf);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue