From: Julien Rioux Date: Thu, 6 Oct 2011 16:21:58 +0000 (+0000) Subject: tex2lyx : Also allow -h and -v command-line options, manpage update. X-Git-Tag: 2.1.0beta1~2621 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=23ab7f0819b2df0333f2d29346447b57cd5b2636;p=lyx.git 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 --- diff --git a/src/tex2lyx/tex2lyx.1in b/src/tex2lyx/tex2lyx.1in index 8ff02218ff..316ec0ce20 100644 --- a/src/tex2lyx/tex2lyx.1in +++ b/src/tex2lyx/tex2lyx.1in @@ -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 diff --git a/src/tex2lyx/tex2lyx.cpp b/src/tex2lyx/tex2lyx.cpp index d5538d8c36..40890b9667 100644 --- a/src/tex2lyx/tex2lyx.cpp +++ b/src/tex2lyx/tex2lyx.cpp @@ -576,8 +576,10 @@ void easyParse(int & argc, char * argv[]) { map 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;