Class: SLA::CommandLine
- Includes:
- Colsole, Singleton
- Defined in:
- lib/sla/command_line.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#base_url, #cache, #url_manager
Instance Method Details
#execute(argv = []) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/sla/command_line.rb', line 6 def execute(argv=[]) doc = File.read File.dirname(__FILE__) + '/docopt.txt' begin args = Docopt::docopt(doc, argv: argv, version: VERSION) handle args rescue Docopt::Exit => e puts e. end end |