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"));