'-version' parameter for tex2rtf.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -133,6 +133,7 @@ int BufSize = 500;
|
||||
|
||||
bool Go(void);
|
||||
void ShowOptions(void);
|
||||
void ShowVersion(void);
|
||||
|
||||
wxChar wxTex2RTFBuffer[1500];
|
||||
|
||||
@@ -293,6 +294,11 @@ bool MyApp::OnInit()
|
||||
i ++;
|
||||
checkSyntax = true;
|
||||
}
|
||||
else if (wxStrcmp(argv[i], _T("-version")) == 0)
|
||||
{
|
||||
i ++;
|
||||
ShowVersion();
|
||||
}
|
||||
else
|
||||
{
|
||||
wxString buf;
|
||||
@@ -595,11 +601,17 @@ int MyApp::OnExit()
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
void ShowOptions(void)
|
||||
|
||||
void ShowVersion(void)
|
||||
{
|
||||
wxChar buf[100];
|
||||
wxSnprintf(buf, sizeof(buf), _T("Tex2RTF version %.2f"), versionNo);
|
||||
OnInform(buf);
|
||||
}
|
||||
|
||||
void ShowOptions(void)
|
||||
{
|
||||
ShowVersion();
|
||||
OnInform(_T("Usage: tex2rtf [input] [output] [switches]\n"));
|
||||
OnInform(_T("where valid switches are"));
|
||||
#ifndef NO_GUI
|
||||
|
Reference in New Issue
Block a user