summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2007-01-18 14:08:56 +0000
committerDarkvater <darkvater@openttd.org>2007-01-18 14:08:56 +0000
commit95ccdeeac0cee0e800b10a6141a6172886e3fa52 (patch)
tree0b83101c42f2a4b91e8a4ac3fc6c1fc289cf4690 /src
parentd3a58ba36b0373e8ed7bdf8de4f21781a3eff47d (diff)
downloadopenttd-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.cpp6
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
}