1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

vcs.rb: update the given option to VCS.detect by keyword arguments

This commit is contained in:
Nobuyoshi Nakada 2021-02-08 23:56:19 +09:00
parent a0faad38ce
commit dfff1df95c
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -65,7 +65,8 @@ class VCS
@@dirs << [dir, self, pred]
end
def self.detect(path = '.', options = {}, parser = nil)
def self.detect(path = '.', options = {}, parser = nil, **opts)
options.update(opts)
uplevel_limit = options.fetch(:uplevel_limit, 0)
curr = path
begin