From fb66c150a4cc670affaaa11cff0ec2cfce69057c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 9 Jan 2007 14:29:38 +0000 Subject: [PATCH] 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 --- utils/tex2rtf/src/tex2rtf.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/utils/tex2rtf/src/tex2rtf.cpp b/utils/tex2rtf/src/tex2rtf.cpp index cba00d3753..68d06b7d22 100644 --- a/utils/tex2rtf/src/tex2rtf.cpp +++ b/utils/tex2rtf/src/tex2rtf.cpp @@ -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 ")); OnInform(_T(" -winhelp")); OnInform(_T(" -rtf")); -- 2.45.2