diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-02-08 23:56:19 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-02-08 23:56:19 +0900 |
commit | dfff1df95ca4f678e926d4e22092697d0eb91e73 (patch) | |
tree | 9190b752ca69c6f19f785e1ea465a4bdf79a801e | |
parent | a0faad38ce6b2a32f33cd045d1c26f4f55d3afe5 (diff) |
vcs.rb: update the given option to VCS.detect by keyword arguments
-rw-r--r-- | tool/lib/vcs.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb index 00b6cb8591..b146dfe3aa 100644 --- a/tool/lib/vcs.rb +++ b/tool/lib/vcs.rb @@ -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 |