Class: Zypper::Onlinesearch::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/zypper/onlinesearch/cli.rb

Overview

Interface class to run the application.

Class Method Summary collapse

Class Method Details

.startObject



159
160
161
162
163
164
165
# File 'lib/zypper/onlinesearch/cli.rb', line 159

def self.start
  options = OptParseMain.parse(ARGV)
  Onlinesearch::Builder.new(options).send(options.operation)
rescue StandardError => e
  Messages.error e
  exit e.error_code
end