]> git.saurik.com Git - wxWidgets.git/commitdiff
Remove duplicate negated option indicator in wxCmdLineParser help.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 23 Apr 2011 11:17:36 +0000 (11:17 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 23 Apr 2011 11:17:36 +0000 (11:17 +0000)
The indicator of a negatable option (one with wxCMD_LINE_SWITCH_NEGATABLE
flag) appeared twice in the usage message, don't add it the second time.

Closes #13157.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/cmdline.cpp

index 030f891ea6f583006f26e548952b0856b9aa38e5..d32958fb933d87a2449dde2f77cee1fdf18a9497 100644 (file)
@@ -1171,7 +1171,6 @@ wxString wxCmdLineParser::GetUsageString() const
                 option << (!opt.longName ? wxT(':') : wxT('=')) << val;
             }
 
                 option << (!opt.longName ? wxT(':') : wxT('=')) << val;
             }
 
-            usage << negator;
             if ( !(opt.flags & wxCMD_LINE_OPTION_MANDATORY) )
             {
                 usage << wxT(']');
             if ( !(opt.flags & wxCMD_LINE_OPTION_MANDATORY) )
             {
                 usage << wxT(']');