Skip to content

Commit

Permalink
Support legacy --verbose option. Define verbose and more verbose.
Browse files Browse the repository at this point in the history
  • Loading branch information
benprew committed Jun 5, 2024
1 parent 2ccb905 commit e68615c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/reckon/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ def self.parse_command_line_options(args = ARGV, stdin = $stdin)
end

options[:verbose] = Logger::WARN
opts.on("", "--v", "Run verbosely") do
opts.on("-v", "--v", "Run verbosely (show info log messages)") do
options[:verbose] = Logger::INFO
end

opts.on("", "--vv", "Run very verbosely") do
opts.on("", "--verbose", "Run verbosely (show info log messages)") do
options[:verbose] = Logger::INFO
end

opts.on("", "--vv", "Run very verbosely (show debug log messages)") do
options[:verbose] = Logger::DEBUG
end

Expand Down

0 comments on commit e68615c

Please sign in to comment.