Show usage string for 'git mailsplit -h'
[gitweb.git] / builtin-log.c
index 207a36178bafcbd755789fefb35b74054d1ff2fa..524850735acd8dcbdf5c5c95332a3c721d8c8483 100644 (file)
@@ -1237,6 +1237,9 @@ int cmd_cherry(int argc, const char **argv, const char *prefix)
                argv++;
        }
 
+       if (argc > 1 && !strcmp(argv[1], "-h"))
+               usage(cherry_usage);
+
        switch (argc) {
        case 4:
                limit = argv[3];