]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed yet another error in my wxCmdLineParser mdifications.
authorMattia Barbon <mbarbon@cpan.org>
Fri, 2 Aug 2002 17:55:54 +0000 (17:55 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Fri, 2 Aug 2002 17:55:54 +0000 (17:55 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/cmdline.cpp

index 4911befc4e1f210274766e091b3a524a3f3e4126..ec1d43bdb48a59faad5c42acee193a7d5360ef1d 100644 (file)
@@ -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();