We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae35586 commit 6edb457Copy full SHA for 6edb457
lib/crono/cli.rb
@@ -85,7 +85,7 @@ def parse_options(args) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
85
end
86
87
opts.on '-v', '--verbose', 'Print more verbose output' do |verbose|
88
- config.verbose = verbose.nil? ? true : verbose
+ config.verbose = verbose.nil? || verbose
89
90
91
parser.parse!(args)
@@ -151,6 +151,7 @@ def launch(self_read) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
151
# Heroku sends TERM and then waits 30 seconds for process to exit.
152
'TERM' => ->(_cli) { raise Interrupt },
153
}.freeze
154
+ private_constant :SIGNAL_HANDLERS
155
156
def handle_signal(sig)
157
logger.debug "Got #{sig} signal"
0 commit comments