Enable flag combining in worktree subcommands

This commit is contained in:
2026-11-10 12:40:53 +00:00
parent 150f50c9fa
commit a2e95fddb7
2 changed files with 45 additions and 14 deletions

View File

@@ -68,12 +68,12 @@ _worktree() {
_arguments '1:: :__worktree_all_branches'
;;
(find)
_arguments \
_arguments -s -S \
'(-i --ignore-case)'{-i,--ignore-case}'[Match the glob case insensitively]' \
'1:: :_files'
;;
(rm|remove)
_arguments \
_arguments -s -S \
'(-f --force)'{-f,--force}'[Force removal even with modified or untracked files]' \
'(-d --delete-branch)'{-d,--delete-branch}'[Also delete the branch]' \
'*: :__worktree_active_branches'