Permalink
Browse files

fix evaluating files

  • Loading branch information...
rkh committed Feb 16, 2011
1 parent 7ffe4e1 commit 8cdc59bc7e181f4b139c906acca5e3f125bb5e15
Showing with 3 additions and 3 deletions.
  1. +3 −3 bin/reak.rb
View
@@ -41,7 +41,6 @@
exit 0
end
-
info = proc do |cond, name, &block|
next unless settings[cond]
puts '', " #{name} ".center(80, "=")
@@ -64,8 +63,9 @@
end
end
-file = options.parse(ARGV).first
-evals << File.read(file) if file
+options.parse(ARGV).each do |file|
+ evals << [file, File.read(file)]
+end
if evals.empty?
if $stdin.tty?

0 comments on commit 8cdc59b

Please sign in to comment.