lib/tobox/cli.rb in tobox-0.5.0 vs lib/tobox/cli.rb in tobox-0.5.1
- old
+ new
@@ -106,13 +106,19 @@
o.on "-g", "--tag TAG", "Process tag for procline" do |arg|
opts[:tag] = arg
end
- o.on "-t", "--shutdown-timeout NUM", Integer, "Shutdown timeout (in seconds)" do |arg|
+ o.on "-t", "--shutdown-timeout NUM", Float, "Shutdown timeout (in seconds)" do |arg|
raise ArgumentError, "must be positive" unless arg.positive?
opts[:shutdown_timeout] = arg
+ end
+
+ o.on "-g", "--shutdown-grace-timeout NUM", Float, "Shutdown grace timeout (in seconds)" do |arg|
+ raise ArgumentError, "must be positive" unless arg.positive?
+
+ opts[:grace_shutdown_timeout] = arg
end
o.on "--verbose", "Print more verbose output" do |arg|
opts[:verbose] = arg
end