add -o/--old to __fish_seen_argument

This commit is contained in:
Z. Grace Moreau 2019-11-02 13:40:40 -06:00 committed by ridiculousfish
parent 5ece4481a5
commit dd1f8489a7

View file

@ -1,5 +1,5 @@
function __fish_seen_argument
argparse 's/short=+' 'l/long=+' -- $argv
argparse 's/short=+' 'o/old=+' 'l/long=+' -- $argv
set cmd (commandline -co)
set -e cmd[1]
@ -10,6 +10,12 @@ function __fish_seen_argument
end
end
for o in $_flag_o
if string match -qr "^-$s\$" -- $t
return 0
end
end
for l in $_flag_l
if string match -q -- "--$l" $t
return 0