Sha256: 32430615cabdcbc6ea7e91d258f6a11cdd712dd724353597710ff8552fad49ab

Contents?: true

Size: 674 Bytes

Versions: 1

Compression:

Stored size: 674 Bytes

Contents

require 'flustered/vendored_trollop'
require 'flustered/core'

module Flustered
  class Cli
    @@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

    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
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
flustered-0.1.1 lib/flustered/cli.rb