Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] update-index: allow "-h" to also display options

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:56:14

Antoine Pelisse [off-list ref] writes:
quoted
diff --git a/builtin/update-index.c b/builtin/update-index.c
index ada1dff..3071ee6 100644
--- a/builtin/update-index.c
+++ b/builtin/update-index.c
@@ -796,7 +796,7 @@ int cmd_update_index(int argc, const char **argv, const char *prefix)
        };

        if (argc == 2 && !strcmp(argv[1], "-h"))
-               usage(update_index_usage[0]);
+               usage_with_options(&update_index_usage[0], options);

        git_config(git_default_config, NULL);
Ok I just realized that

    usage_with_options(update_index_usage, options);

would be better...
Yeah, that probably is easier on the eyes, even though they are
equivalent.

Thanks, will queue.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help