# HG changeset patch # User Darkvater # Date 2007-01-18 14:08:56 # Node ID d2674935248f1e620e40456e20491fc65efc98cc # Parent edaf80b06f96a1f17e7b3a2bade57d44dbfc93df (svn r8240) -Fix (r8013): Put the output of -h to stdout and not to stderr (through ShowInfo) diff --git a/src/openttd.cpp b/src/openttd.cpp --- 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 }