ad default code, Jruby sucks
This commit is contained in:
parent
cc2993f1be
commit
4458855364
@ -10,7 +10,7 @@ options = Hash.new
|
||||
|
||||
OptionParser.new do |opts|
|
||||
opts.banner = "Usage: whenever [options]"
|
||||
opts.on('-v', '--version') { puts "Whenever v#{Whenever::VERSION}"; exit }
|
||||
opts.on('-v', '--version') { puts "Whenever v#{Whenever::VERSION}"; exit(0) }
|
||||
opts.on('-w', '--write-crontab') { options[:write] = true }
|
||||
opts.on('-i', '--update-crontab [identifier]', 'Default: full path to schedule.rb file') do |identifier|
|
||||
options[:update] = true
|
||||
|
@ -29,7 +29,7 @@ module Whenever
|
||||
write_crontab(whenever_cron)
|
||||
else
|
||||
puts Whenever.cron(@options)
|
||||
exit
|
||||
exit(0)
|
||||
end
|
||||
end
|
||||
|
||||
@ -67,7 +67,7 @@ module Whenever
|
||||
action = 'written' if @options[:write]
|
||||
action = 'updated' if @options[:update]
|
||||
puts "[write] crontab file #{action}"
|
||||
exit
|
||||
exit(0)
|
||||
else
|
||||
warn "[fail] Couldn't write crontab; try running `whenever' with no options to ensure your schedule file is valid."
|
||||
exit(1)
|
||||
|
Loading…
Reference in New Issue
Block a user