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



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

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:



102
103
104
105
106
107
# File 'lib/bixby-agent/app/cli.rb', line 102

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