# File lib/turn/command.rb, line 210 def main(*argv) option_parser.parse!(argv) @loadpath = ['lib'] if loadpath.empty? tests = ARGV.empty? ? nil : argv.dup #config = Turn::Configuration.new do |c| config = Turn.config do |c| c.live = live c.log = log c.loadpath = loadpath c.requires = requires c.tests = tests c.runmode = runmode c.format = outmode c.pattern = pattern c.matchcase = matchcase c.framework = framework c.trace = trace end controller = Turn::Controller.new(config) result = controller.start if result exit result.passed? else # no tests exit end end