git: getopt(3): Recognize 'option::' for optional argument

Aaron LI aly at crater.dragonflybsd.org
Wed Feb 16 06:07:07 PST 2022


commit cf9179eef9dcb2908603f6aed2a14f797a8edb9a
Author: Aaron LI <aly at 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


More information about the Commits mailing list