update-index: allow "-h" to also display options
commitb04d930bbcd1dc7cbb4524063ec339a8feb3cc12
authorAntoine Pelisse <apelisse@gmail.com>
Sat, 23 Feb 2013 18:10:41 +0000 (23 19:10 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 24 Feb 2013 07:49:33 +0000 (23 23:49 -0800)
treec0c2393cd66e005d3aa7cd8fdf2612ebebf0045c
parentdff9f8835f2f2820c4e7109d242cb06b39f7d065
update-index: allow "-h" to also display options

Even though "git update-index" was updated to use parse-options
infrastracture some time ago to make it possible to show list of
options with usage_with_options(), "git update-index -h" only shows
the usage.  Detect this case and call usage_with_options() to show
the list of options as well.

Signed-off-by: Antoine Pelisse <apelisse@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/update-index.c