- // this variable can be set to true to suppress "assert failure" messages
- static bool s_bNoAsserts = FALSE;
+ // The standard way of printing help on command line arguments (app --help)
+ // is (according to common practice):
+ // - console apps: to stderr (on any platform)
+ // - GUI apps: stderr on Unix platforms (!)
+ // stderr if available and message box otherwise on others
+ // (currently stderr only Windows if app running from console)
+#ifdef __UNIX__
+ return new wxMessageOutputStderr;
+#else // !__UNIX__
+ // wxMessageOutputMessageBox doesn't work under Motif
+ #ifdef __WXMOTIF__
+ return new wxMessageOutputLog;
+ #elif wxUSE_MSGDLG
+ return new wxMessageOutputBest(wxMSGOUT_PREFER_STDERR);
+ #else
+ return new wxMessageOutputStderr;
+ #endif
+#endif // __UNIX__/!__UNIX__
+}