]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/cmdline.cpp
Implemented the various printf() functions under
[wxWidgets.git] / 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();