lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

command-line options and ly:add-option


From: Reinhold Kainhofer
Subject: command-line options and ly:add-option
Date: Mon, 9 Nov 2009 16:22:57 +0100
User-agent: KMail/1.12.2 (Linux/2.6.31-14-generic; KDE/4.3.2; i686; ; )

If I use ly:add-option in an external lilypond package to declare a new 
option, e.g.
#(ly:add-option 'incipit #t
      "Whether to print an incipit with the old key / clef (if provided).
      If the 'ancient-style option is set to ##t, this option has no effect.")


lilypond will always set the option to the default value (#t) in this case. 
Unfortunately, this will override any command-line option given.

For example, run the attached file as
  lilypond -d my-option add-option.ly

As you will see in the output, in the beginning, the value is set to #t (the 
value given on the command line), but the ly:add-option call explicitly sets 
the value to the default #f, overwriting the command-line value...

So, how are custom options supposed to work???
Cheers,
Reinhold
-- 
------------------------------------------------------------------
Reinhold Kainhofer, address@hidden, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org

Attachment: add-option.ly
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]