Class: Flustered::Cli
Constant Summary collapse
- @@version =
Flustered::VERSION + ' (c) Spencer Charles'
- @@parser =
Trollop:: do "Flustered " + @@version "Flustered is a test toolkit that hooks your unit tests up with a REST API.\nUsage: flustered [options]\n" 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 |