parseopt: handle malformed --expire arguments more nicely
[gitweb.git] / builtin / update-index.c
index 58d1c2d2827d61899d73f1ea7632c5ee219f3ace..34adf55a719915c6e69f8983a37851ca99e9b60b 100644 (file)
@@ -1059,6 +1059,7 @@ int cmd_update_index(int argc, const char **argv, const char *prefix)
                        break;
                switch (parseopt_state) {
                case PARSE_OPT_HELP:
+               case PARSE_OPT_ERROR:
                        exit(129);
                case PARSE_OPT_NON_OPTION:
                case PARSE_OPT_DONE: