Module: Sevgi::Binaries::Igves

Extended by:
Igves
Included in:
Igves
Defined in:
lib/sevgi/binaries/igves.rb

Constant Summary collapse

PROGNAME =
"igves"
Error =
Class.new(::Sevgi::Error)

Instance Method Summary collapse

Instance Method Details

#call(argv) ⇒ Object



39
40
41
42
43
44
45
46
# File 'lib/sevgi/binaries/igves.rb', line 39

def call(argv)
  return puts(help) if (options = Options.parse(argv = Array(argv))).help
  return puts(::Sevgi::VERSION) if options.version

  puts(run(argv.shift, options))
rescue Binaries::Igves::Error => e
  abort(e.message)
end