]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r337666: getopt_long(3): Document behavior, optstring leading characters
authorkevans <kevans@FreeBSD.org>
Mon, 20 Aug 2018 00:51:19 +0000 (00:51 +0000)
committerkevans <kevans@FreeBSD.org>
Mon, 20 Aug 2018 00:51:19 +0000 (00:51 +0000)
commit10be16b97ea3437daa80fa4f8d719820a320e37a
tree3e9fe49282589e7195fbebb5361d0e74eca76bb2
parent04d90b88927e9d25d5ada26e2be446d5f7779ce0
MFC r337666: getopt_long(3): Document behavior, optstring leading characters

Leading '+', '-', and ':' in optstring have special meaning. We briefly
mention that the first two have special meaning in that we say
POSIXLY_CORRECT turns them off, but we don't actually document their
meaning. Add a paragraph to RETURN VALUES explaining how they control
the treatment of non-option arguments.

A leading ':' has no mention; add a note that it suppresses warnings about
missing arguments.
lib/libc/stdlib/getopt_long.3