3 ms·
That is only true in some environments, since it's not in fact part of the language specification. See the manual page's [1] "STANDARDS" section, which reads:
by unwind 3y ago
That is only true in some environments, since it's not in fact part of the language specification.
See the manual page's [1] "STANDARDS" section, which reads:
getopt()
POSIX.1-2008.
getopt_long()
getopt_long_only()
GNU.
The use of '+' and '-' in optstring is a GNU extension.
[1]: https://www.man7.org/linux/man-pages/man3/getopt.3.html https://www.man7.org/linux/man-pages/man3/getopt.3.html
- ho_schi 3y agoCorrect. It is probably a feature which isn’t necessary for the languages itself but Linux/POSIX.