tex2lyx : Also allow -h and -v command-line options, manpage update.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39807 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Julien Rioux 2011-10-06 16:21:58 +00:00
parent e79b461f9e
commit 23ab7f0819
2 changed files with 5 additions and 0 deletions

View File

@ -83,6 +83,9 @@ named \fIfoo.lyx.lyx\fR, and the re-exported file will be named
.TP
.BI \-help
Help. Print out usage information and quit.
.TP
.BI \-version
Print out the version number and build information and quit.
.SH "DESCRIPTION"
.SS "Introduction"
\fBtex2lyx\fR will create a LyX file with the specified name (or

View File

@ -576,8 +576,10 @@ void easyParse(int & argc, char * argv[])
{
map<string, cmd_helper> cmdmap;
cmdmap["-h"] = parse_help;
cmdmap["-help"] = parse_help;
cmdmap["--help"] = parse_help;
cmdmap["-v"] = parse_version;
cmdmap["-version"] = parse_version;
cmdmap["--version"] = parse_version;
cmdmap["-c"] = parse_class;