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
This commit is contained in:
parent
f3b1d0fc56
commit
a6fd3ed883
@ -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(']');
|
||||
|
Loading…
Reference in New Issue
Block a user