Module: Bixby::App::CLI
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Object
:nocov:.
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
#initialize ⇒ Object
:nocov:
88 89 90 91 92 93 |
# File 'lib/bixby-agent/app/cli.rb', line 88 def initialize super @argv = () ARGV.clear << @argv ARGV.flatten! end |