Author: jrioux
Date: Thu Oct 6 18:21:58 2011
New Revision: 39807
URL: http://www.lyx.org/trac/changeset/39807
Log:
tex2lyx : Also allow -h and -v command-line options, manpage update.
Modified:
lyx-devel/trunk/src/tex2lyx/tex2lyx.1in
lyx-devel/trunk/src/tex2lyx/tex2lyx.cpp
Modified: lyx-devel/trunk/src/tex2lyx/tex2lyx.1in
==============================================================================
--- lyx-devel/trunk/src/tex2lyx/tex2lyx.1in Thu Oct 6 15:51:45 2011
(r39806)
+++ lyx-devel/trunk/src/tex2lyx/tex2lyx.1in Thu Oct 6 18:21:58 2011
(r39807)
@@ -83,6 +83,9 @@
.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
Modified: lyx-devel/trunk/src/tex2lyx/tex2lyx.cpp
==============================================================================
--- lyx-devel/trunk/src/tex2lyx/tex2lyx.cpp Thu Oct 6 15:51:45 2011
(r39806)
+++ lyx-devel/trunk/src/tex2lyx/tex2lyx.cpp Thu Oct 6 18:21:58 2011
(r39807)
@@ -576,8 +576,10 @@
{
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;