]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/convert-ly.py
Fix some bugs in the dynamic engraver and PostScript backend
[lilypond.git] / scripts / convert-ly.py
index 149b9130415e893ba2411a95b9a56c202af2af3c..c4c1e7408252f5861bc375e27e76974ff0f439ea 100644 (file)
@@ -1,4 +1,4 @@
-#!@PYTHON@
+#!@TARGET_PYTHON@
 #
 # convert-ly.py -- Update old LilyPond input files (fix name?)
 #
@@ -89,7 +89,7 @@ Copyright (c) %s by
 
 
 def get_option_parser ():
-       p = ly.get_option_parser (usage='lilypond-book [OPTIONS] FILE',
+       p = ly.get_option_parser (usage='convert-ly [OPTIONS] FILE',
                                  version="@TOPLEVEL_VERSION@",
                                  description=help_summary)
 
@@ -110,6 +110,7 @@ def get_option_parser ():
        
        p.add_option ("-s", '--show-rules',
                      help=_('print rules [default: --from=0, --to=@TOPLEVEL_VERSION@]'),
+                     dest='show_rules',
                      action='store_true', default=False)
        
        p.add_option ('-t', '--to',
@@ -265,7 +266,7 @@ def do_options ():
        global global_options
        global_options = options
 
-       if not args:
+       if not args and not options.show_rules:
                opt_parser.print_help ()
                sys.exit (2)