getopt(3): Recognize 'option::' for optional argument
authorAaron LI <aly@aaronly.me>
Wed, 16 Feb 2022 06:31:36 +0000 (14:31 +0800)
committerAaron LI <aly@aaronly.me>
Wed, 16 Feb 2022 14:06:19 +0000 (22:06 +0800)
commitcf9179eef9dcb2908603f6aed2a14f797a8edb9a
tree6fc58f281aaf675ba1748787edd53f71e1cc6c27
parent5a7df9a91228babb040f19af6e1d64f916f33310
getopt(3): Recognize 'option::' for optional argument

If the option is followed by two colons, then the option argument is
optional.  This is a GNU extension.

Obtained from NetBSD via FreeBSD (revision 267745).
lib/libc/stdlib/getopt.3
lib/libc/stdlib/getopt.c