Remove __fish_seen_argument_from

Despite its somewhat misleading name, `__fish_seen_argument` can already handle
multiple arguments in one go and doesn't need a wrapper function!
This commit is contained in:
Mahmoud Al-Qudsi 2022-09-27 18:49:22 -05:00
parent 77941ea823
commit 072dbfd6ed
2 changed files with 1 additions and 9 deletions

View file

@ -2292,7 +2292,7 @@ complete -f -c git -n '__fish_git_using_command for-each-ref' -l count -d "Limit
set -l for_each_ref_interpreters shell perl python tcl set -l for_each_ref_interpreters shell perl python tcl
for intr in $for_each_ref_interpreters for intr in $for_each_ref_interpreters
complete -f -c git -n '__fish_git_using_command for-each-ref' \ complete -f -c git -n '__fish_git_using_command for-each-ref' \
-n "not __fish_seen_argument_from --$for_each_ref_interpreters" \ -n "not __fish_seen_argument --$for_each_ref_interpreters" \
-l $intr -d "%(fieldname) placeholders are $intr scripts" -l $intr -d "%(fieldname) placeholders are $intr scripts"
end end
complete -f -c git -n '__fish_git_using_command for-each-ref' -x -l format -d "Format string with %(fieldname) placeholders" complete -f -c git -n '__fish_git_using_command for-each-ref' -x -l format -d "Format string with %(fieldname) placeholders"

View file

@ -1,8 +0,0 @@
function __fish_seen_argument_from
for arg in $argv
if __fish_seen_argument -- $arg
return 0
end
end
return 1
end