mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Default @debug to $DEBUG
This commit is contained in:
parent
4562dad94c
commit
be14f62caf
1 changed files with 1 additions and 0 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue