Sha256: 732d8a509f8c5719ff98a1f7058e48547bd0cf1111753dfc7a2b001c19f7b2a3
Contents?: true
Size: 882 Bytes
Versions: 2
Compression:
Stored size: 882 Bytes
Contents
#!/usr/bin/env ruby $:.unshift File.expand_path("../../lib", __FILE__) require "autocuke" require "optparse" options = OpenStruct.new options.root = File.join(Dir.getwd) options.features = File.join(options.root, "features") options.verbose = false OptionParser.new do |opts| opts.banner = "Usage: autocuke [options]" opts.on("-r", "--root DIRECTORY", "Set the root directory to DIRECTORY") do |dir| options.root = dir end opts.on("-d", "--dir DIRECTORY", "Watch for .feature files in DIRECTORY") do |dir| options.dir = dir end opts.on("-v", "--[no-]verbose", "Run verbosely") do |v| options.verbose = v end opts.on_tail("-h", "--help", "Show this message") do puts opts exit end opts.on_tail("--version", "Show version") do puts [ "autocuke v", Autocuke::VERSION ].join exit end end.parse! Autocuke.start(options)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
autocuke-0.1.1 | bin/autocuke |
autocuke-0.1.0 | bin/autocuke |