Method: InfinityTest::Options#initialize
- Defined in:
- lib/infinity_test/options.rb
#initialize(arguments) ⇒ Options
Returns a new instance of Options.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/infinity_test/options.rb', line 6 def initialize(arguments) super() @options = OptionParser.new do || [:test_unit, :rspec, :bacon, :rubygems, :rails, :rubies, :verbose, :patterns, :bundler, :version].each do |name| send("parse_#{name}", ) end . = [ "Usage: infinity_test [options]", "Starts a continuous test server."].join("\n") .on_tail("--help", "You're looking at it.") do print .help exit end end @options.parse!(arguments.clone) end |