commit cf9179eef9dcb2908603f6aed2a14f797a8edb9a Author: Aaron LI <a...@aaronly.me> Date: Wed Feb 16 14:31:36 2022 +0800
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). Summary of changes: lib/libc/stdlib/getopt.3 | 13 ++++++++++++- lib/libc/stdlib/getopt.c | 7 ++++++- 2 files changed, 18 insertions(+), 2 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cf9179eef9dcb2908603f6aed2a14f797a8edb9a -- DragonFly BSD source repository