From bd996abe63a8ed6aa07b26856a0d7935002e3e81 Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Fri, 2 Aug 2002 17:55:54 +0000 Subject: [PATCH] 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 --- src/common/cmdline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();