X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0cf8b31be51b78617c06390e57390c2187784580..a59c124d063b0df0b3259d99b5b569206414f8f5:/src/common/cmdline.cpp 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();