Option style for LuaTeX
Norbert Preining
norbert at preining.info
Wed Dec 20 16:03:27 CET 2023
Hi Bruno
On Wed, 20 Dec 2023, TeX Live Mailing List wrote:
> A quick question in case somebody here knows: does LuaTeX accept options in "single-dash style", like -file-line-error, or does it insist on "double-dash style", like --file-line-error?
Have you simply tried it?
At least on Linux,
luatex --version
luatex -version
luatex --help
luatex -help
and several others did work.
So yes, it does support both - and --
> uses getopt_long_only on line 366. Does this mean LuaTeX only accepts double-dash options?
>From the man page, eg here https://linux.die.net/man/3/getopt_long_only
> getopt_long_only() is like getopt_long(), but '-' as well as "--" can indicate a long option. If an option that starts with '-' (not "--") doesn't match a long option, but does match a short option, it is parsed as a short option instead.
Best regards
Norbert
--
PREINING Norbert https://www.preining.info
Mercari Inc. + IFMGA Guide + TU Wien + TeX Live
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
More information about the tex-live
mailing list.