Files
fish-shell/share/functions/__fish_any_arg_in.fish
Johannes Altmanninger a53db72564 Mark private functions that don't need localization
See the next commit.

Part of #11833
2025-09-30 11:47:26 +02:00

11 lines
263 B
Fish

# localization: skip(private)
# returns 0 only if any argument is on of the supplied arguments
function __fish_any_arg_in
set -l haystack $argv
for arg in (commandline -xpc)
contains -- $arg $haystack
and return 0
end
return 1
end