fixed error message when long options are disabled (patch 597771)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -807,11 +807,19 @@ int wxCmdLineParser::Parse(bool showUsage)
|
|||||||
optName = opt.shortName;
|
optName = opt.shortName;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
if ( AreLongOptionsEnabled() )
|
||||||
{
|
{
|
||||||
optName.Printf( _("%s (or %s)"),
|
optName.Printf( _("%s (or %s)"),
|
||||||
opt.shortName.c_str(),
|
opt.shortName.c_str(),
|
||||||
opt.longName.c_str() );
|
opt.longName.c_str() );
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
optName.Printf( wxT("%s"),
|
||||||
|
opt.shortName.c_str() );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
errorMsg << wxString::Format(_("The value for the option '%s' must be specified."),
|
errorMsg << wxString::Format(_("The value for the option '%s' must be specified."),
|
||||||
optName.c_str()) << "\n";
|
optName.c_str()) << "\n";
|
||||||
|
Reference in New Issue
Block a user