Class: Rea::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/rea/command.rb,
lib/rea/command/utils.rb,
lib/rea/command/search.rb

Overview

rea - The Research Exploring Assistant

SYNOPSIS

#{program_name} [--version] [--help] COMMAND [cmd opts] ARGS...

OPTIONS #summarized_options

COMMANDS #summarized_subcommands

See ‘#program_name help COMMAND’ for more information on a specific command.

Defined Under Namespace

Modules: Utils Classes: Search

Instance Method Summary collapse

Instance Method Details

#execute(*args) ⇒ Object



34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/rea/command.rb', line 34

def execute(*args)
  super
rescue Quickl::Error
  raise
rescue Rea::Error => ex
  if @trace
    dump_exception(ex)
  else
    $stderr.puts ex.message
  end
rescue Exception => ex
  puts "Sorry, an internal error occured. Please report --trace to developers."
  dump_exception(ex) if @trace
end