fixes error/usage messages given by the cmd line parsing logic in wxApp;

also fixed the handling of long-only options in the usage messages


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-12-17 12:21:03 +00:00
parent a250392c48
commit be03c0ec26
5 changed files with 56 additions and 11 deletions

View File

@@ -166,7 +166,7 @@ bool wxAppBase::OnInit()
OnInitCmdLine(parser);
bool cont;
switch ( parser.Parse() )
switch ( parser.Parse(FALSE /* don't show usage */) )
{
case -1:
cont = OnCmdLineHelp(parser);
@@ -287,7 +287,7 @@ bool wxAppBase::OnCmdLineParsed(wxCmdLineParser& parser)
if ( !SetDisplayMode(wxDisplayModeInfo(w, h, bpp)) )
return FALSE;
}
#endif
#endif // __WXMGL__
return TRUE;
}