]> git.saurik.com Git - wxWidgets.git/commitdiff
show -version in the list of options; exit after showing the version as all the other...
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 9 Jan 2007 14:29:38 +0000 (14:29 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 9 Jan 2007 14:29:38 +0000 (14:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44179 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

utils/tex2rtf/src/tex2rtf.cpp

index cba00d3753924c62274d802ffc58a3f8f3475e09..68d06b7d221e81ab2f598e16a1904904e725e15c 100644 (file)
@@ -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"));