Use readlines, not read

This commit is contained in:
Colin Shea 2010-03-29 08:21:58 -04:00
parent 545fd53b88
commit 4fa61ea14a

View File

@ -14,7 +14,7 @@ require 'optparse'
# Write usage message to stdout and exit.
def usage(stream=$stderr, status=1)
stream.puts File.read(__FILE__).
stream.puts File.readlines(__FILE__).
grep(/^#\//).
map { |line| line.sub(/^#. ?/, '') }.
join