Next: getopt_long_only
, Up: Glibc <getopt.h>
[Contents][Index]
getopt_long
LSB specification:
https://refspecs.linuxbase.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/baselib-getopt-long-3.html
Documentation:
Gnulib module: getopt-gnu
Portability problems fixed by Gnulib:
getopt_long
does not obey the combination of
‘+’ and ‘:’ flags in the options string on some platforms:
glibc 2.11.
-W foo
to behave synonymously with --foo
:
glibc 2.11.
getopt_long
does not support the ‘+’ flag in
the options string on some platforms:
macOS 14, AIX 5.2, Solaris 10.
optind
after a missing required argument is wrong
on some platforms:
macOS 14.
getopt_long
does not obey the ‘-’ flag in the
options string when POSIXLY_CORRECT
is set on some platforms:
Cygwin 1.7.0.
POSIXLY_CORRECT
, when optind
is set to ‘0’:
NetBSD, Cygwin 1.7.0.
getopt_long
does not support options with optional
arguments on some platforms:
macOS 14, OpenBSD 4.0, AIX 5.2, Solaris 11 2010-11, Cygwin 1.5.x.
W;
but
there are no long options, on some platforms:
glibc 2.14.
Portability problems not fixed by Gnulib: