mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-05 07:04:27 +08:00
parent
566a673e4f
commit
c71a2e573f
@ -5,7 +5,7 @@ function __fish_seen_argument --description 'Check whether argument used'
|
|||||||
set -e cmd[1]
|
set -e cmd[1]
|
||||||
for t in $cmd
|
for t in $cmd
|
||||||
for s in $_flag_s
|
for s in $_flag_s
|
||||||
if string match -qr "^-[A-z0-9]*$s[A-z0-9]*\$" -- $t
|
if string match -qr "^-[A-z0-9]*"$s"[A-z0-9]*\$" -- $t
|
||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user