X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Fetf2ly.py;h=4e2fcc7a11fb4606a03fe24cc41333c82706135b;hb=e4d9f2a42252f2548773a0514ced1d21d40e5a59;hp=f87778d9d4fc61c93fca965328ee60cdf3b5fd45;hpb=e9a308e9c6002900fc336733950a0175bcbcc333;p=lilypond.git diff --git a/scripts/etf2ly.py b/scripts/etf2ly.py index f87778d9d4..4e2fcc7a11 100644 --- a/scripts/etf2ly.py +++ b/scripts/etf2ly.py @@ -1178,9 +1178,16 @@ Copyright (c) %s by def get_option_parser (): p = ly.get_option_parser (usage=_ ("%s [OPTION]... ETF-FILE") % 'etf2ly', - version="etf2ly (LilyPond) @TOPLEVEL_VERSION@", description=_ ("""Enigma Transport Format is a format used by Coda Music Technology's -Finale product. etf2ly converts a subset of ETF to a ready-to-use LilyPond file.""")) +Finale product. etf2ly converts a subset of ETF to a ready-to-use LilyPond file."""), + add_help_option=False) + p.add_option("-h", "--help", + action="help", + help=_ ("show this help and exit")) + p.version = "etf2ly (LilyPond) @TOPLEVEL_VERSION@" + p.add_option("--version", + action="version", + help=_ ("show version number and exit")) p.add_option ('-o', '--output', help=_ ("write output to FILE"), metavar=_("FILE"), action='store') @@ -1188,7 +1195,7 @@ Finale product. etf2ly converts a subset of ETF to a ready-to-use LilyPond file action='store_true', ), - p.add_option_group ('bugs', + p.add_option_group (ly.display_encode (_ ('Bugs')), description=(_ ('Report bugs via') + ''' http://post.gmane.org/post.php''' '''?group=gmane.comp.gnu.lilypond.bugs\n''')) @@ -1226,8 +1233,6 @@ for f in files: sys.stderr.write ('Writing `%s\'' % out_filename) ly = e.dump() - - fo = open (out_filename, 'w') fo.write ('%% lily was here -- automatically converted by etf2ly from %s\n' % f) fo.write(ly)