TexPathList.Add(::wxGetCwd());
-#ifdef NO_GUI
- if (InputFile.empty() || OutputFile.empty())
- {
- wxSTD cout << "Tex2RTF: input or output file is missing.\n";
- ShowOptions();
- exit(1);
- }
-#endif
-
- if (!InputFile.empty())
- {
- TexPathList.EnsureFileAccessible(InputFile);
- }
- if (InputFile.empty() || OutputFile.empty())
- isInteractive = true;
-
int i;
for (i = n; i < argc;)
{
i ++;
ShowVersion();
#ifdef NO_GUI
- ShowOptions();
exit(1);
#else
return false;
}
}
+#ifdef NO_GUI
+ if (InputFile.empty() || OutputFile.empty())
+ {
+ wxSTD cout << "Tex2RTF: input or output file is missing.\n";
+ ShowOptions();
+ exit(1);
+ }
+#endif
+
+ if (!InputFile.empty())
+ {
+ TexPathList.EnsureFileAccessible(InputFile);
+ }
+ if (InputFile.empty() || OutputFile.empty())
+ isInteractive = true;
+
#if defined(__WXMSW__) && !defined(NO_GUI)
wxDDEInitialize();
Tex2RTFLastStatus[0] = 0; // DDE connection return value