}
}
- if ( !ok && errorMsg.length() != 0 )
+ if ( !ok && (errorMsg.length() != 0 || helpRequested) )
{
wxString usage;
wxMessageOutput* msgOut = wxMessageOutput::Get();
+ wxASSERT(msgOut);
if ( showUsage ) usage = GetUsageString();
if ( msgOut )
msgOut->Printf( wxT("%s%s"), usage.c_str(), errorMsg.c_str() );