Default @debug to $DEBUG
This commit is contained in:
parent
4562dad94c
commit
be14f62caf
@ -164,6 +164,7 @@ class VCS
|
|||||||
parser.on("--[no-]dryrun") {|v| @dryrun = v}
|
parser.on("--[no-]dryrun") {|v| @dryrun = v}
|
||||||
parser.on("--[no-]debug") {|v| @debug = v}
|
parser.on("--[no-]debug") {|v| @debug = v}
|
||||||
parser.parse(opts)
|
parser.parse(opts)
|
||||||
|
@debug = $DEBUG unless defined?(@debug)
|
||||||
@dryrun = @debug unless defined?(@dryrun)
|
@dryrun = @debug unless defined?(@dryrun)
|
||||||
when Hash
|
when Hash
|
||||||
unless (keys = opts.keys - [:debug, :dryrun]).empty?
|
unless (keys = opts.keys - [:debug, :dryrun]).empty?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user