From 3afe4b8a7cc831469462705502ba987b9d809236 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Thu, 18 Jan 2007 14:08:56 +0000 Subject: (svn r8240) -Fix (r8013): Put the output of -h to stdout and not to stderr (through ShowInfo) --- src/openttd.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/openttd.cpp') 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 } -- cgit v1.2.3-54-g00ecf