worktree: accept -f as short for --force for removal
[gitweb.git] / builtin / worktree.c
index 670555deddaca8ff8050c03ea68c83c7b4e459e6..dba460f8130c0d9835a32b5e259694e58b6f2df8 100644 (file)
@@ -790,8 +790,9 @@ static int remove_worktree(int ac, const char **av, const char *prefix)
 {
        int force = 0;
        struct option options[] = {
-               OPT_BOOL(0, "force", &force,
-                        N_("force removing even if the worktree is dirty")),
+               OPT__FORCE(&force,
+                        N_("force removing even if the worktree is dirty"),
+                        PARSE_OPT_NOCOMPLETE),
                OPT_END()
        };
        struct worktree **worktrees, *wt;