exe/benchmark-driver in benchmark_driver-0.11.0 vs exe/benchmark-driver in benchmark_driver-0.11.1

- old
+ new

@@ -40,9 +40,15 @@ c.repeat_count = Integer(v) rescue ArgumentError abort "-r, --repeat-count must take Integer, but got #{v.inspect}" end end + o.on('--repeat-result [TYPE]', 'Yield "best", "average" or "worst" result with --repeat-count (default: best)') do |v| + unless BenchmarkDriver::Repeater::VALID_TYPES.include?(v) + raise ArgumentError.new("--repeat-result must be #{BenchmarkDriver::Repeater::VALID_TYPES.join(', ')} but got #{v.inspect}") + end + c.repeat_result = v + end o.on('--bundler', 'Install and use gems specified in Gemfile') do |v| bundler = v end o.on('--filter [REGEXP]', 'Filter out benchmarks with given regexp') do |v| c.filters << Regexp.compile(v)