Class: Crabbs::CLI

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

Instance Method Summary collapse

Instance Method Details

#startObject



7
8
9
10
11
12
13
14
15
# File 'lib/crabbs/cli.rb', line 7

def start
  begin
    opts = parse_options
    result = Crabbs.start({ url: opts[:url], verbose: opts[:verbose] })
    STDOUT.puts "\nResult:\n#{result.to_json}"
  rescue Slop::MissingOptionError => e
    STDOUT.puts e.message
  end
end