- * use _i () to get entry in POT file
- * call gettext () explicitely for actual "translation" */
-
-static Long_option_init options_static[] =
- {
- {_i ("EXPR"), "evaluate", 'e',
- _i ("set option, use -e '(ly:option-usage)' for help")},
- /* Bug in option parser: --output=foe is taken as an abbreviation
- for --output-format. */
- {_i ("EXT"), "format", 'f', _i ("select back-end to use")},
- {0, "help", 'h', _i ("print this help")},
- {_i ("FIELD"), "header", 'H', _i ("write header field to BASENAME.FIELD")},
- {_i ("DIR"), "include", 'I', _i ("add DIR to search path")},
- {_i ("FILE"), "init", 'i', _i ("use FILE as init file")},
- {0, "no-layout", 'm', _i ("produce MIDI output only")},
- {_i ("FILE"), "output", 'o', _i ("write output to FILE")},
- {0, "preview", 'p', _i ("generate a preview")},
- {0, "no-pages", 0, _i ("don't generate full pages")},
- {0, "png", 0, _i ("generate PNG")},
- {0, "ps", 0, _i ("generate PostScript")},
- {0, "dvi", 0, _i ("generate DVI")},
- {0, "pdf", 0, _i ("generate PDF (default)")},
- {0, "tex", 0, _i ("generate TeX")},
- {0, "safe-mode", 's', _i ("run in safe mode")},
- {0, "version", 'v', _i ("print version number")},
- {0, "verbose", 'V', _i ("be verbose")},
- {0, "warranty", 'w', _i ("show warranty and copyright")},
- {0,0,0,0}
- };
+ * use _i () to get entry in POT file
+ * call gettext () explicitely for actual "translation" */
+
+static Long_option_init options_static[]
+= {
+ {_i ("SYM[=VAL]"), "define-default", 'd',
+ _i ("set Scheme option SYM to VAL (default: #t).\n"
+ "Use -dhelp for help.")},
+
+ {_i ("EXPR"), "evaluate", 'e', _i ("evaluate scheme code")},
+ /* Bug in option parser: --output =foe is taken as an abbreviation
+ for --output-format. */
+ {_i ("FORMATs"), "formats", 'f', _i ("dump FORMAT,... Also as separate options:")},
+ {0, "dvi", 0, _i ("generate DVI (tex backend only)")},
+ {0, "pdf", 0, _i ("generate PDF (default)")},
+ {0, "png", 0, _i ("generate PNG")},
+ {0, "ps", 0, _i ("generate PostScript")},
+ {0, "tex", 0, _i ("generate TeX (tex backend only)")},
+ {0, "help", 'h', _i ("show this help and exit")},
+ {_i ("FIELD"), "header", 'H', _i ("dump header field FIELD to file\n"
+ "named BASENAME.FIELD")},
+ {_i ("DIR"), "include", 'I', _i ("add DIR to search path")},
+ {_i ("FILE"), "init", 'i', _i ("use FILE as init file")},
+#if HAVE_CHROOT
+ {_i ("USER, GROUP, JAIL, DIR"), "jail", 'j', _i ("chroot to JAIL, become USER:GROUP\n"
+ "and cd into DIR")},
+#endif
+ {_i ("FILE"), "output", 'o', _i ("write output to FILE (suffix will be added)")},
+ {0, "relocate", 0, _i ("relocate using directory of lilypond program")},
+ {0, "version", 'v', _i ("show version number and exit")},
+ {0, "verbose", 'V', _i ("be verbose")},
+ {0, "warranty", 'w', _i ("show warranty and copyright")},
+ {0, 0, 0, 0}
+};
+
+char const *LILYPOND_DATADIR = PACKAGE_DATADIR "/" TOPLEVEL_VERSION;
+
+static void
+env_var_info (FILE *out, char const *key)
+{
+ if (char const *value = getenv (key))
+ fprintf (out, "%s=\"%s\"\n", key, value);
+}