mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 15:14:44 +00:00
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:
parent
0cccbfcaaa
commit
1501693949
1 changed files with 8 additions and 0 deletions
8
share/functions/__fish_seen_argument_from.fish
Normal file
8
share/functions/__fish_seen_argument_from.fish
Normal 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
|
Loading…
Reference in a new issue