# File lib/heroku/command/base.rb, line 91
  def self.extract_help(file, line)
    buffer = []
    lines  = File.read(file).split("\n")

    catch(:done) do
      (line.to_i-2).downto(0) do |i|
        case lines[i].strip[0..0]
          when "", "#" then buffer << lines[i]
          else throw(:done)
        end
      end
    end

    buffer.map! do |line|
      line.strip.gsub(/^#/, "")
    end

    buffer.reverse.join("\n").strip
  end