diff options
| author | Wladimir J. van der Laan <[email protected]> | 2012-02-17 17:53:41 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2012-02-17 17:55:46 +0100 |
| commit | bc5e6b9f21f1dd4703d286018b43fd0ea0f32186 (patch) | |
| tree | d412ddd4469eb5bccbc64c6e7ba011c3b4b18a0d /src/init.cpp | |
| parent | don't allow -daemon in bitcoin-qt (changes only #defines) (diff) | |
| download | discoin-bc5e6b9f21f1dd4703d286018b43fd0ea0f32186.tar.xz discoin-bc5e6b9f21f1dd4703d286018b43fd0ea0f32186.zip | |
On windows, show message box with help, as there is no stderr (fixes #702)
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp index 95bf76495..017d34306 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -246,7 +246,12 @@ bool AppInit2(int argc, char* argv[]) // Remove tabs strUsage.erase(std::remove(strUsage.begin(), strUsage.end(), '\t'), strUsage.end()); +#if defined(QT_GUI) && defined(WIN32) + // On windows, show a message box, as there is no stderr + wxMessageBox(strUsage, "Usage"); +#else fprintf(stderr, "%s", strUsage.c_str()); +#endif return false; } |