diff options
author | Darkvater <darkvater@openttd.org> | 2007-01-18 14:08:56 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2007-01-18 14:08:56 +0000 |
commit | 95ccdeeac0cee0e800b10a6141a6172886e3fa52 (patch) | |
tree | 0b83101c42f2a4b91e8a4ac3fc6c1fc289cf4690 /src | |
parent | d3a58ba36b0373e8ed7bdf8de4f21781a3eff47d (diff) | |
download | openttd-95ccdeeac0cee0e800b10a6141a6172886e3fa52.tar.xz |
(svn r8240) -Fix (r8013): Put the output of -h to stdout and not to stderr (through ShowInfo)
Diffstat (limited to 'src')
-rw-r--r-- | src/openttd.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp index b29e92f2e..33595d885 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -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 } |