Skip to content

Commit

Permalink
Fix comments related to DATA.read.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyx committed Mar 22, 2013
1 parent 3e88e03 commit 597f02e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/dep
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ if File.basename($0) == "dep"
end

on("--help") do
# I hate this, but since rubygems does a wrapper
# script, we can't use the elegance of DATA.read :(

# We can't use DATA.read because rubygems does a wrapper script.
help = File.read(__FILE__).split(/^__END__/)[1]

IO.popen("less", "w") { |f| f.write(help) }
Expand Down

0 comments on commit 597f02e

Please sign in to comment.