10.69.41 getopt

POSIX specification:
https://pubs.opengroup.org/onlinepubs/9799919799/functions/getopt.html

LSB specification:
https://refspecs.linuxbase.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/libutil-getopt-3.html

Gnulib module: getopt-posix or getopt-gnu

The module getopt-gnu has support for “long options” and for “options that take optional arguments”. Compared to the API defined by POSIX, it adds a header file <getopt.h> and a function getopt_long.

Portability problems fixed by either Gnulib module getopt-posix or getopt-gnu:

Portability problems fixed by Gnulib module getopt-gnu:

Portability problems not fixed by Gnulib: