-#!@PYTHON@
+#!@TARGET_PYTHON@
#
# convert-ly.py -- Update old LilyPond input files (fix name?)
#
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)
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',
global global_options
global_options = options
- if not args:
+ if not args and not options.show_rules:
opt_parser.print_help ()
sys.exit (2)