Re: [PATCH 6/6] parse-options: automatically infer PARSE_OPT_LITERAL_ARGHELP

2018-08-03 Thread Kerry, Richard
ject: [PATCH 6/6] parse-options: automatically infer PARSE_OPT_LITERAL_ARGHELP Parseopt wraps argument help strings in a pair of angular brackets by default, to tell users that they need to replace it with an actual value. This is useful in most cases, because most option arguments are indeed

Re: [PATCH 6/6] parse-options: automatically infer PARSE_OPT_LITERAL_ARGHELP

2018-08-03 Thread Kerry, Richard
d will not be liable for any damages resulting from any virus transmitted. From: git-ow...@vger.kernel.org on behalf of René Scharfe Sent: 02 August 2018 20:18 To: Jeff King; Junio C Hamano Cc: Ævar Arnfjörð Bjarmason; git@vger.kernel.org Subject: [PATCH 6/6] parse-op

Re: [PATCH 6/6] parse-options: automatically infer PARSE_OPT_LITERAL_ARGHELP

2018-08-02 Thread Junio C Hamano
René Scharfe writes: > diff --git a/parse-options.c b/parse-options.c > index 7db84227ab..3b874a83a0 100644 > --- a/parse-options.c > +++ b/parse-options.c > @@ -660,7 +660,8 @@ int parse_options(int argc, const char **argv, const char > *prefix, > static int usage_argh(const struct option

[PATCH 6/6] parse-options: automatically infer PARSE_OPT_LITERAL_ARGHELP

2018-08-02 Thread René Scharfe
Parseopt wraps argument help strings in a pair of angular brackets by default, to tell users that they need to replace it with an actual value. This is useful in most cases, because most option arguments are indeed single values of a certain type. The option PARSE_OPT_LITERAL_ARGHELP needs to be