From be14f62cafff30a6127c6ff533fec6de232ba7dd Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 28 Jun 2019 12:41:03 +0900 Subject: Default @debug to $DEBUG --- tool/vcs.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'tool/vcs.rb') diff --git a/tool/vcs.rb b/tool/vcs.rb index 34ec6a4d30..4554da35c8 100644 --- a/tool/vcs.rb +++ b/tool/vcs.rb @@ -164,6 +164,7 @@ class VCS parser.on("--[no-]dryrun") {|v| @dryrun = v} parser.on("--[no-]debug") {|v| @debug = v} parser.parse(opts) + @debug = $DEBUG unless defined?(@debug) @dryrun = @debug unless defined?(@dryrun) when Hash unless (keys = opts.keys - [:debug, :dryrun]).empty? -- cgit v1.2.3