Merge branch 'ap/maint-update-index-h-is-for-help' into maint
authorJunio C Hamano <gitster@pobox.com>
Tue, 26 Mar 2013 19:42:42 +0000 (12:42 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 Mar 2013 19:42:42 +0000 (12:42 -0700)
"git update-index -h" did not do the usual "-h(elp)" thing.

* ap/maint-update-index-h-is-for-help:
update-index: allow "-h" to also display options

builtin/update-index.c
index ada1dff846f2b77d5f71d69db57a7eca5033b943..5c7762eef404e7ea21d88991a81407f1cb99f306 100644 (file)
@@ -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, options);
 
        git_config(git_default_config, NULL);