parse-options: let OPT__FORCE take optional flags argument
[gitweb.git] / builtin / mv.c
index cf3684d907a2fe3408581502c682d6290c790827..b88023a733ff263f13b12bb0e618f15da0f74a11 100644 (file)
@@ -122,7 +122,7 @@ int cmd_mv(int argc, const char **argv, const char *prefix)
        struct option builtin_mv_options[] = {
                OPT__VERBOSE(&verbose, N_("be verbose")),
                OPT__DRY_RUN(&show_only, N_("dry run")),
-               OPT__FORCE(&force, N_("force move/rename even if target exists")),
+               OPT__FORCE(&force, N_("force move/rename even if target exists"), 0),
                OPT_BOOL('k', NULL, &ignore_errors, N_("skip move/rename errors")),
                OPT_END(),
        };