]> git.ipfire.org Git - thirdparty/git.git/commitdiff
config: correct "--type" option in "git config -h" output
authorMatheus Felipe <matheusfelipeog@protonmail.com>
Fri, 4 Mar 2022 04:31:53 +0000 (04:31 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 4 Mar 2022 07:46:19 +0000 (23:46 -0800)
The usage help for --type option of `git config` is missing `type`
in the argument placeholder (`<>`). Add it.

Signed-off-by: Matheus Felipe <matheusfelipeog@protonmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/config.c

index 542d8d02b2b00a8675d6bff9245019d0251d043f..2aea465466bbeb41eb6a87a934c57ed3bf50ab67 100644 (file)
@@ -151,7 +151,7 @@ static struct option builtin_config_options[] = {
        OPT_BIT(0, "get-color", &actions, N_("find the color configured: slot [default]"), ACTION_GET_COLOR),
        OPT_BIT(0, "get-colorbool", &actions, N_("find the color setting: slot [stdout-is-tty]"), ACTION_GET_COLORBOOL),
        OPT_GROUP(N_("Type")),
-       OPT_CALLBACK('t', "type", &type, "", N_("value is given this type"), option_parse_type),
+       OPT_CALLBACK('t', "type", &type, N_("type"), N_("value is given this type"), option_parse_type),
        OPT_CALLBACK_VALUE(0, "bool", &type, N_("value is \"true\" or \"false\""), TYPE_BOOL),
        OPT_CALLBACK_VALUE(0, "int", &type, N_("value is decimal number"), TYPE_INT),
        OPT_CALLBACK_VALUE(0, "bool-or-int", &type, N_("value is --bool or --int"), TYPE_BOOL_OR_INT),