Method: HoneyFormat::BenchmarkCLI#initialize

Defined in:
lib/honey_format/cli/benchmark_cli.rb

#initialize(writer: CLIResultWriter.new) ⇒ BenchmarkCLI

Instantiate the CLI

Parameters:

  • writer (CLIResultWriter) (defaults to: CLIResultWriter.new)

    the result writer to use



20
21
22
23
24
25
# File 'lib/honey_format/cli/benchmark_cli.rb', line 20

def initialize(writer: CLIResultWriter.new)
  @used_input_path = nil
  @writer = writer
  @options = parse_options(argv: ARGV)
  writer.verbose = true if @options[:verbose]
end