diff --git a/src/common/cmdline.cpp b/src/common/cmdline.cpp index 4911befc4e..ec1d43bdb4 100644 --- a/src/common/cmdline.cpp +++ b/src/common/cmdline.cpp @@ -842,7 +842,7 @@ int wxCmdLineParser::Parse(bool showUsage) } } - if ( !ok && errorMsg.length() != 0 ) + if ( !ok && (errorMsg.length() != 0 || helpRequested) ) { wxString usage; wxMessageOutput* msgOut = wxMessageOutput::Get();