git: getopt.3: Clarify option string syntax

Aaron LI aly at crater.dragonflybsd.org
Sat Feb 19 19:27:03 PST 2022


commit cd85487ee5969aac1c1a34258daf05c3e598d591
Author: Aaron LI <aly at aaronly.me>
Date:   Sat Feb 19 17:36:13 2022 +0800

    getopt.3: Clarify option string syntax
    
    The recently added 'option::' syntax requires the following argument
    (if present) *must* be in the same word as the option name itself
    (e.g., "-x<arg>").  This is different than the normal 'option:' syntax,
    for which the argument may have a leading white space (e.g., "-x <arg>").
    Update the man page to explicitly describe the syntax.
    
    Update to use a list to describe the 3 types of option string syntaxes
    with examples.

Summary of changes:
 lib/libc/stdlib/getopt.3 | 53 ++++++++++++++++++++++++++++++++----------------
 1 file changed, 36 insertions(+), 17 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cd85487ee5969aac1c1a34258daf05c3e598d591


-- 
DragonFly BSD source repository


More information about the Commits mailing list