summaryrefslogtreecommitdiff
path: root/unpack-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'unpack-file.c')
-rw-r--r--unpack-file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unpack-file.c b/unpack-file.c
index ac9cbf7cd8..e9d8934691 100644
--- a/unpack-file.c
+++ b/unpack-file.c
@@ -28,7 +28,7 @@ int main(int argc, char **argv)
git_extract_argv0_path(argv[0]);
- if (argc != 2)
+ if (argc != 2 || !strcmp(argv[1], "-h"))
usage("git unpack-file <sha1>");
if (get_sha1(argv[1], sha1))
die("Not a valid object name %s", argv[1]);