Class: Snapcrawl::CLI

Inherits:
Object
  • Object
show all
Includes:
Colsole
Defined in:
lib/snapcrawl/cli.rb

Instance Method Summary collapse

Instance Method Details

#call(args = []) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/snapcrawl/cli.rb', line 11

def call(args = [])
  begin
    execute Docopt::docopt(docopt, version: VERSION, argv: args)
  rescue Docopt::Exit => e
    puts e.message
  end
end