X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flyx2lyx%2Flyx2lyx;h=928c3bfb6f202e74303ba8993ae21fda1269d9a4;hb=144cf4bb9afaa594ef61b93fdb03d34e4752f2ad;hp=9d038305e16c9111fa3ed07b9016b23edbeaf55b;hpb=c6610453e0845383da8949492cdc142e985afb46;p=lyx.git diff --git a/lib/lyx2lyx/lyx2lyx b/lib/lyx2lyx/lyx2lyx index 9d038305e1..928c3bfb6f 100755 --- a/lib/lyx2lyx/lyx2lyx +++ b/lib/lyx2lyx/lyx2lyx @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/python3 # -*- coding: utf-8 -*- # Copyright (C) 2002-2011 The LyX Team # Copyright (C) 2002-2007 José Matos @@ -56,26 +56,27 @@ def main(): parser.add_argument("--noisy", action="store_const", const=10, dest="debug") parser.add_argument("-c", "--encoding", type=cmd_arg, dest="cjk_encoding", - help="files in format 413 and lower are read and" + help="Files in format 413 and lower are read and" " written in the format of CJK-LyX." - "If encoding is not given or 'auto' the encoding" - "is determined from the locale.") + " If encoding is not given or 'auto' the encoding" + " is determined from the locale.") parser.add_argument("-e", "--err", type=cmd_arg, dest="error", - help= "file name of the error file else goes to stderr") + help= "File name of the error file else goes to stderr.") parser.add_argument("-o", "--output", type=cmd_arg, dest="output", - help= "name of the output file else goes to stdout") + help= "Name of the output file else goes to stdout.") parser.add_argument("-t", "--to", type=cmd_arg, dest= "end_format", - help= "destination file format, default (latest)") + help= "Destination file format, default .") parser.add_argument("-V", "--final_version", type=cmd_arg, dest= "final_version", - help= "destination version, default (latest)") + help= "Destination version, default .") parser.add_argument("-l", "--list", action="store_true", - help = "list all available formats and supported versions") + help = "List all available formats and supported versions.") parser.add_argument("-n", "--try-hard", action="store_true", - help = "try hard (ignore any convertion errors)") + help = "Try hard (ignore any conversion errors).") parser.add_argument("-s", "--systemlyxdir", type=cmd_arg, dest= "systemlyxdir", - help= "LyX system directory for conversion from version 489 or older") + help= "LyX system directory for conversion from" + " version 489 or older.") parser.add_argument('--version', action='version', version="""lyx2lyx, version %s -Copyright (C) 2011 The LyX Team, José Matos and Dekel Tsur""" % LyX.version__) + Copyright (C) 2011 The LyX Team, José Matos and Dekel Tsur""" % LyX.version__) parser.add_argument("input", nargs='?', type=cmd_arg, default=None) options = parser.parse_args()