• S
    parse-options: add PARSE_OPT_LITERAL_ARGHELP for complicated argh's · 29f25d49
    Stephen Boyd 提交于
    Usually, the argh element in struct option points at a placeholder value
    (e.g. "val"), and is shown in the usage message as
    
        --option=<val>
    
    by enclosing the string inside of angle brackets.
    
    When the option is more complex (e.g. optional arguments separated by a
    comma), you would want to produce a usage message that looks like
    
        --option=<val1>[,<val2>]
    
    In such a case, the caller can pass a string to argh with placeholders
    already enclosed in necessary angle brackets (e.g.  "<val1>[,<val2>]")
    and set this flag.
    Signed-off-by: NStephen Boyd <bebarino@gmail.com>
    Signed-off-by: NJunio C Hamano <gitster@pobox.com>
    29f25d49
parse-options.c 13.3 KB