Send --help message to stdout i.s.o stderr

This allows fun stuff such as `bitcoin --help | less`, and more
easy piping to files.

Looking at other tools such as bash, gcc, they all send their help
text to stdout.
This commit is contained in:
Wladimir J. van der Laan
2012-10-04 07:56:57 +02:00
committed by Luke Dashjr
parent bced903ae5
commit d37a2fd808

View File

@@ -232,7 +232,7 @@ bool AppInit2(int argc, char* argv[])
#else
// Remove tabs
strUsage.erase(std::remove(strUsage.begin(), strUsage.end(), '\t'), strUsage.end());
fprintf(stderr, "%s", strUsage.c_str());
fprintf(stdout, "%s", strUsage.c_str());
#endif
return false;
}