From: Vadim Zeitlin Date: Sat, 23 Apr 2011 11:17:36 +0000 (+0000) Subject: Remove duplicate negated option indicator in wxCmdLineParser help. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a6fd3ed8834a8523b671dccfa2cc18c2fcf69600 Remove duplicate negated option indicator in wxCmdLineParser help. 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 --- diff --git a/src/common/cmdline.cpp b/src/common/cmdline.cpp index 030f891ea6..d32958fb93 100644 --- a/src/common/cmdline.cpp +++ b/src/common/cmdline.cpp @@ -1171,7 +1171,6 @@ wxString wxCmdLineParser::GetUsageString() const option << (!opt.longName ? wxT(':') : wxT('=')) << val; } - usage << negator; if ( !(opt.flags & wxCMD_LINE_OPTION_MANDATORY) ) { usage << wxT(']');