mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-06 22:37:22 +00:00
(svn r8240) -Fix (r8013): Put the output of -h to stdout and not to stderr (through ShowInfo)
This commit is contained in:
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
Block a user