Class: Jossh::BinHandler

Inherits:
Object
  • Object
show all
Includes:
Colsole
Defined in:
lib/jossh/bin_handler.rb

Instance Method Summary collapse

Instance Method Details

#handle(args) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/jossh/bin_handler.rb', line 12

def handle(args)
  begin
    execute Docopt::docopt(doc, argv: args)
  rescue Docopt::Exit => e
    puts e.message
  end
end