Module: Bixby::App::CLI

Includes:
Mixlib::CLI
Included in:
Bixby::App
Defined in:
lib/bixby-agent/app/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(receiver) ⇒ Object



11
12
13
14
15
16
# File 'lib/bixby-agent/app/cli.rb', line 11

def self.included(receiver)
  receiver.extend(Mixlib::CLI::ClassMethods)
  receiver.instance_variable_set(:@options, @options)
  receiver.instance_variable_set(:@banner, @banner)
  receiver.instance_variable_set(:@opt_parser, @opt_parser)
end

Instance Method Details

#initializeObject

:nocov:



88
89
90
91
92
93
# File 'lib/bixby-agent/app/cli.rb', line 88

def initialize
  super
  @argv = parse_options()
  ARGV.clear << @argv
  ARGV.flatten!
end