Enable flag combining in worktree subcommands
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user