finding locations of many files via kpse
Erik Nijenhuis
erik at xerdi.com
Mon Aug 5 16:37:34 CEST 2024
Hi Norbert,
On Mon, 2024-08-05 at 23:00 +0900, Norbert Preining wrote:
> Too much overhead since it has only one option and parsing is easy ;-)
Ah, I thought you also wanted to include the optional program name, but I agree
that the parsing in this case is child's play.
However, for those managing it manually, numerous inconsistencies in CLIs have
arisen. For example, in GNU's getopt library, long options are always preceded
by two dashes. Providing a long option with a single dash, such as -mark, would
be interpreted as four short options: -m, -a, -r, and -k. Additionally, there
are many inconsistencies in how values are provided for options.
My hope is that lua-alt-getopt is somewhat aligned with other CLIs within TeX
Live, but I'm guessing this script is for internal use.
I'll have to admit that I'm a great fan of GNU's getopt semantics. However, from
a historical standpoint, the alternative getopt library within TeX Live should
be favored instead, since that is what a TeX user would be expecting.
Best, Erik
More information about the texhax
mailing list.