[tex-live] programs without --version

Werner LEMBERG wl at gnu.org
Thu Apr 19 05:51:54 CEST 2012


>     Why do the web2c/kpathsea-programs like
>     pdftex accept long options not only with "--" but also with "-"?
> 
> With GNU getopt, if you call getopt_long_only instead of
> getopt_long, it automatically accepts either - or -- as the prefix.
> And the options can be unambiguously abbreviated (unless you disable
> that feature, which we do for some scripts, but that's another
> story).  Hence you get -h, -help, --h, --help all meaning the same
> thing, for free.

Another reason is that X11 traditionally only uses one `-' even for
long options.


    Werner


More information about the tex-live mailing list