Class: Evilution::CLI::Parser::OptionsBuilder Private

Inherits:
Object
  • Object
show all
Defined in:
lib/evilution/cli/parser/options_builder.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ OptionsBuilder

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of OptionsBuilder.



12
13
14
# File 'lib/evilution/cli/parser/options_builder.rb', line 12

def initialize(options)
  @options = options
end

Class Method Details

.build(options) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



8
9
10
# File 'lib/evilution/cli/parser/options_builder.rb', line 8

def self.build(options)
  new(options).build
end

Instance Method Details

#buildObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/evilution/cli/parser/options_builder.rb', line 16

def build
  OptionParser.new do |opts|
    opts.banner = "Usage: evilution [command] [options] [files...]"
    opts.version = Evilution::VERSION
    add_separators(opts)
    add_core_options(opts)
    add_filter_options(opts)
    add_flag_options(opts)
    add_runner_mode_options(opts)
    add_output_options(opts)
    add_profile_options(opts)
    add_extra_flag_options(opts)
    add_session_options(opts)
    add_compare_options(opts)
  end
end