#!/usr/bin/env ruby require 'detest' if ARGV.delete('-h') or ARGV.delete('--help') system 'man', '-M', File.join(Detest::INSTDIR, 'man'), 'detest' or warn "Could not display the help manual.\nSee #{Detest::WEBSITE} instead." exit elsif ARGV.delete('-v') or ARGV.delete('--version') puts Detest::VERSION exit end Detest.debug = ARGV.delete('-d') || ARGV.delete('--debug') require 'detest/auto' ARGV.each {|glob| Dir[glob].each {|test| load test } }