From: Mattia Barbon Date: Fri, 2 Aug 2002 17:55:54 +0000 (+0000) Subject: Fixed yet another error in my wxCmdLineParser mdifications. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bd996abe63a8ed6aa07b26856a0d7935002e3e81 Fixed yet another error in my wxCmdLineParser mdifications. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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();