From af9f8894e3b39f1522bef54c8d73bea46ac55acc Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Sun, 10 Feb 2008 19:09:41 +0100 Subject: [PATCH] MusicXML: Make relative mode the default -) Improve option usage help text -) Add --absolute / -a and make --relative/-r the default --- scripts/musicxml2ly.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/scripts/musicxml2ly.py b/scripts/musicxml2ly.py index d826574784..4ae771e37b 100644 --- a/scripts/musicxml2ly.py +++ b/scripts/musicxml2ly.py @@ -1793,7 +1793,7 @@ License and you are welcome to change it and/or distribute copies of it under certain conditions. Invoke as `%s --warranty' for more information.""") % 'lilypond' + """ -Copyright (c) 2005--2007 by +Copyright (c) 2005--2008 by Han-Wen Nienhuys , Jan Nieuwenhuizen and Reinhold Kainhofer @@ -1819,17 +1819,23 @@ Copyright (c) 2005--2007 by p.add_option ('-r', '--relative', action = "store_true", dest = "relative", - help = _ ("Convert pitches in relative mode.")) + help = _ ("Convert pitches in relative mode. (Default)")) + + p.add_option ('-a', '--absolute', + action = "store_false", + dest = "relative", + help = _ ("Convert pitches in absolute mode.")) p.add_option ('-l', '--language', + metavar=_("LANG"), action = "store", - help = _ ("Use a different language file, e.g. 'deutsch' for deutsch.ly.")) + help = _ ("Use a different language file 'LANG.ly' and corresponding pitch names, e.g. 'deutsch' for deutsch.ly.")) - p.add_option ('--no-articulation-directions', '--nd', + p.add_option ('--nd', '--no-articulation-directions', action = "store_false", default = True, dest = "convert_directions", - help = _ ("Do not convert directions (^, _ or -) for articulations.")) + help = _ ("Do not convert directions (^, _ or -) for articulations, dynamics, etc.")) p.add_option ('-o', '--output', metavar=_ ("FILE"), -- 2.39.5