X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=lily%2Fprogram-option-scheme.cc;h=616e99397a4d2c8c70b7cd5235bf08a9350fcf35;hb=ce75448434cbce3925cd93bc203d129962517037;hp=cf5416ae8b3325ea89fce6c890e5e7a7b7e2ebea;hpb=d61cf3bbdb1c6670a127ba3baddf2f04d3e34fd3;p=lilypond.git diff --git a/lily/program-option-scheme.cc b/lily/program-option-scheme.cc index cf5416ae8b..616e99397a 100644 --- a/lily/program-option-scheme.cc +++ b/lily/program-option-scheme.cc @@ -187,12 +187,12 @@ get_help_string () return help; } -LY_DEFINE (ly_option_usage, "ly:option-usage", 0, 0, 0, (), - "Print @code{ly:set-option} usage.") +LY_DEFINE (ly_option_usage, "ly:option-usage", 0, 1, 0, (SCM port), + "Print @code{ly:set-option} usage. Optional @var{port} argument" + "for the destination defaults to current output port.") { - string help = get_help_string (); - puts (help.c_str ()); - fflush (stdout); + SCM str = scm_from_locale_string (get_help_string ().c_str ()); + scm_write_line (str, port); return SCM_UNSPECIFIED; }