wxCmdLineParser's output goes to stderr, not message box, under Unix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -191,8 +191,15 @@ int wxAppBase::FilterEvent(wxEvent& WXUNUSED(event))
|
||||
|
||||
void wxAppBase::DoInit()
|
||||
{
|
||||
if(wxMessageOutput::Get()) return;
|
||||
#if wxUSE_GUI
|
||||
if (wxMessageOutput::Get())
|
||||
return;
|
||||
|
||||
// NB: 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 (!)
|
||||
// message box under Windows and others
|
||||
#if wxUSE_GUI && !defined(__UNIX__)
|
||||
#ifdef __WXMOTIF__
|
||||
wxMessageOutput::Set(new wxMessageOutputLog);
|
||||
#else
|
||||
|
Reference in New Issue
Block a user