Method: Bixby::Client::App#options

Defined in:
lib/bixby-client/app.rb

#optionsObject



68
69
70
71
72
73
74
75
76
77
78
79
80
# File 'lib/bixby-client/app.rb', line 68

def options
  @options ||= OptionParser.new do |opts|
    opts.banner = nil

    opts.on_tail("-v", "--verbose", "Enable verbose output") {
      global_options[:verbose] = true
    }

    opts.on_tail("-h", "--help", "Display this help") {
      global_options[:help] = true
    }
  end
end