From dfff1df95ca4f678e926d4e22092697d0eb91e73 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 8 Feb 2021 23:56:19 +0900 Subject: [PATCH] vcs.rb: update the given option to VCS.detect by keyword arguments --- tool/lib/vcs.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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