'-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);
|
bool Go(void);
|
||||||
void ShowOptions(void);
|
void ShowOptions(void);
|
||||||
|
void ShowVersion(void);
|
||||||
|
|
||||||
wxChar wxTex2RTFBuffer[1500];
|
wxChar wxTex2RTFBuffer[1500];
|
||||||
|
|
||||||
@@ -293,6 +294,11 @@ bool MyApp::OnInit()
|
|||||||
i ++;
|
i ++;
|
||||||
checkSyntax = true;
|
checkSyntax = true;
|
||||||
}
|
}
|
||||||
|
else if (wxStrcmp(argv[i], _T("-version")) == 0)
|
||||||
|
{
|
||||||
|
i ++;
|
||||||
|
ShowVersion();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
wxString buf;
|
wxString buf;
|
||||||
@@ -595,11 +601,17 @@ int MyApp::OnExit()
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
void ShowOptions(void)
|
|
||||||
|
void ShowVersion(void)
|
||||||
{
|
{
|
||||||
wxChar buf[100];
|
wxChar buf[100];
|
||||||
wxSnprintf(buf, sizeof(buf), _T("Tex2RTF version %.2f"), versionNo);
|
wxSnprintf(buf, sizeof(buf), _T("Tex2RTF version %.2f"), versionNo);
|
||||||
OnInform(buf);
|
OnInform(buf);
|
||||||
|
}
|
||||||
|
|
||||||
|
void ShowOptions(void)
|
||||||
|
{
|
||||||
|
ShowVersion();
|
||||||
OnInform(_T("Usage: tex2rtf [input] [output] [switches]\n"));
|
OnInform(_T("Usage: tex2rtf [input] [output] [switches]\n"));
|
||||||
OnInform(_T("where valid switches are"));
|
OnInform(_T("where valid switches are"));
|
||||||
#ifndef NO_GUI
|
#ifndef NO_GUI
|
||||||
|
Reference in New Issue
Block a user