cat-file: report an error on multiple --batch options
[gitweb.git] / builtin / commit.c
index 074bd9a55160a8efcaa1c108afcf6bd6bc360626..4d7754ca43515575730b10c6c40bbc6234424e06 100644 (file)
@@ -1335,7 +1335,7 @@ int cmd_status(int argc, const char **argv, const char *prefix)
                OPT_BOOL(0, "no-renames", &no_renames, N_("do not detect renames")),
                { OPTION_CALLBACK, 'M', "find-renames", &rename_score_arg,
                  N_("n"), N_("detect renames, optionally set similarity index"),
-                 PARSE_OPT_OPTARG, opt_parse_rename_score },
+                 PARSE_OPT_OPTARG | PARSE_OPT_NONEG, opt_parse_rename_score },
                OPT_END(),
        };