bin/code in code-ruby-0.11.0 vs bin/code in code-ruby-0.12.0
- old
+ new
@@ -40,9 +40,15 @@
"-t TIMEOUT",
"--timeout TIMEOUT",
"Set timeout in seconds"
) { |timeout| options[:timeout] = timeout.to_f }
+ opts.on(
+ "-z TIME_ZONE",
+ "--time-zone TIME_ZONE",
+ "Set time zone"
+ ) { |time_zone| Time.zone = time_zone }
+
opts.on("--profile", "Profile Ruby code") do |_timeout|
require "ruby-prof"
options[:profile] = true
end