Add __fish_seen_argument_from wrapper

There are a million existing ways of skinning this cat, but it's a good parallel
to `__fish_seen_argument` to have, in a similar vein to
`__fish_seen_subcommand_from`.
This commit is contained in:
Mahmoud Al-Qudsi 2022-09-27 14:00:41 -05:00
parent 0cccbfcaaa
commit 1501693949

View file

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