Ignore new options in legacy Ruby version

This commit is contained in:
Junegunn Choi 2015-03-10 02:16:32 +09:00
parent 12d81e212f
commit 48e0c1e721

2
fzf
View File

@ -200,6 +200,8 @@ class FZF
when '--no-print-query' then @print_query = false when '--no-print-query' then @print_query = false
when '-e', '--extended-exact' then @extended = :exact when '-e', '--extended-exact' then @extended = :exact
when '+e', '--no-extended-exact' then @extended = nil when '+e', '--no-extended-exact' then @extended = nil
when '--tac', '--sync'
# XXX
else else
usage 1, "illegal option: #{o}" usage 1, "illegal option: #{o}"
end end