Class: Flustered::Cli

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

Constant Summary collapse

@@version =
Flustered::VERSION + ' (c) Spencer Charles'
@@parser =
Trollop::options do
   banner "Flustered " + @@version
  banner <<-TEXT
Flustered is a test toolkit that hooks your unit tests up with a REST API.
Usage: flustered [options]
TEXT
   version @@version
   opt :sample, 'A stupid sample option'
end

Class Method Summary collapse

Class Method Details

.run(*args) ⇒ Object



20
21
22
23
24
25
26
27
# File 'lib/flustered/cli.rb', line 20

def self.run(*args)
  Trollop::with_standard_exception_handling @@parser do
    o = @@parser.parse args
  end
#      Trollop::die "Must specify some arg TBD" if args.empty?
  
  Flustered::Core.run
end