mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
1501693949
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`.
8 lines
154 B
Fish
8 lines
154 B
Fish
function __fish_seen_argument_from
|
|
for arg in $argv
|
|
if __fish_seen_argument -- $arg
|
|
return 0
|
|
end
|
|
end
|
|
return 1
|
|
end
|