}
else
{
- optName.Printf(_("%s (or %s)"),
- opt.shortName.c_str(),
- opt.longName.c_str());
+ if ( AreLongOptionsEnabled() )
+ {
+ optName.Printf( _("%s (or %s)"),
+ opt.shortName.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."),
}
}
- if ( !ok && errorMsg.length() != 0 )
+ if ( !ok && (errorMsg.length() != 0 || helpRequested) )
{
wxString usage;
wxMessageOutput* msgOut = wxMessageOutput::Get();