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:
@@ -298,6 +298,12 @@ bool MyApp::OnInit()
|
|||||||
{
|
{
|
||||||
i ++;
|
i ++;
|
||||||
ShowVersion();
|
ShowVersion();
|
||||||
|
#ifdef NO_GUI
|
||||||
|
ShowOptions();
|
||||||
|
exit(1);
|
||||||
|
#else
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -623,6 +629,7 @@ void ShowOptions(void)
|
|||||||
OnInform(_T(" -sync"));
|
OnInform(_T(" -sync"));
|
||||||
OnInform(_T(" -checkcurlybraces"));
|
OnInform(_T(" -checkcurlybraces"));
|
||||||
OnInform(_T(" -checksyntax"));
|
OnInform(_T(" -checksyntax"));
|
||||||
|
OnInform(_T(" -version"));
|
||||||
OnInform(_T(" -macros <filename>"));
|
OnInform(_T(" -macros <filename>"));
|
||||||
OnInform(_T(" -winhelp"));
|
OnInform(_T(" -winhelp"));
|
||||||
OnInform(_T(" -rtf"));
|
OnInform(_T(" -rtf"));
|
||||||
|
Reference in New Issue
Block a user