Skip to content

Commit

Permalink
Default @debug to $DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Jun 28, 2019
1 parent 4562dad commit be14f62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tool/vcs.rb
Expand Up @@ -164,6 +164,7 @@ def parse_options(opts, parser = OptionParser.new)
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?
Expand Down

0 comments on commit be14f62

Please sign in to comment.