]> git.lyx.org Git - lyx.git/commitdiff
tex2lyx : Also allow -h and -v command-line options, manpage update.
authorJulien Rioux <jrioux@lyx.org>
Thu, 6 Oct 2011 16:21:58 +0000 (16:21 +0000)
committerJulien Rioux <jrioux@lyx.org>
Thu, 6 Oct 2011 16:21:58 +0000 (16:21 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39807 a592a061-630c-0410-9148-cb99ea01b6c8

src/tex2lyx/tex2lyx.1in
src/tex2lyx/tex2lyx.cpp

index 8ff02218ffe37a5b0d9646d0658cf6d0fac880ab..316ec0ce2021de1e14251b097612f0014c5ce8a5 100644 (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
index d5538d8c3683b74d9e7e2f2aa08970cd74f539a9..40890b9667aabaf45f42ef9071c04a45c504686f 100644 (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;