show -version in the list of options; exit after showing the version as all the other programs do
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44179 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
63dd461bc8
commit
fb66c150a4
@ -298,6 +298,12 @@ bool MyApp::OnInit()
|
||||
{
|
||||
i ++;
|
||||
ShowVersion();
|
||||
#ifdef NO_GUI
|
||||
ShowOptions();
|
||||
exit(1);
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -623,6 +629,7 @@ void ShowOptions(void)
|
||||
OnInform(_T(" -sync"));
|
||||
OnInform(_T(" -checkcurlybraces"));
|
||||
OnInform(_T(" -checksyntax"));
|
||||
OnInform(_T(" -version"));
|
||||
OnInform(_T(" -macros <filename>"));
|
||||
OnInform(_T(" -winhelp"));
|
||||
OnInform(_T(" -rtf"));
|
||||
|
Loading…
Reference in New Issue
Block a user