Thanks, Knute.  I am aware of those, but they don’t quite get me what I want.  
If I hardcode the output directory with \bookOutputName, then it can’t be 
overridden from the command line.

David

> On Jan 17, 2026, at 4:10 PM, Knute Snortum <[email protected]> wrote:
> 
> On Sat, Jan 17, 2026 at 2:46 PM David F. <[email protected] 
> <mailto:[email protected]>> wrote:
>> There is the “-o” command line option to set the output file/directory.  Is 
>> there a way to set this option in code?  I’m looking for a way to set a 
>> default value for this option in code such that it can still be overridden 
>> from the command line.  (And I specifically am wanting to set this value to 
>> a directory leaving all the other means for configuring the final output 
>> name in tact.)
> 
> Hmm, I'm not sure these will do all you want, but if you have an explicit 
> \book block in your input file, you can use \bookOutputName or 
> \bookOutputSuffix.  See:
> 
> https://lilypond.org/doc/v2.24/Documentation/notation/output-file-names
> 
> --
> Knute Snortum
> 
> 

Reply via email to