bin/cutest in cutest-1.0.1 vs bin/cutest in cutest-1.1.0.rc1
- old
+ new
@@ -61,9 +61,13 @@
end
end
end
files = Cutest::Clap.run ARGV,
- "-r" => lambda { |file| require file },
+ "-r" => lambda { |file| Cutest::REQUIREMENTS.push(file) },
"-v" => lambda { puts Cutest::VERSION }
-Cutest.run(Dir[*files]) if files.any?
+case files.size
+when 0 then exit
+when 1 then Cutest.run_file(files.first)
+else Cutest.run(Dir[*files])
+end