# File lib/heroku/commands/help.rb, line 121
    def usage
      longest_command_length = self.class.groups.map do |group|
        group.map { |g| g.first.length }
      end.flatten.max

      self.class.groups.inject(StringIO.new) do |output, group|
        output.puts "=== %s" % group.title
        output.puts

        group.each do |command, description|
          if command.empty?
            output.puts
          else
            output.puts "%-*s # %s" % [longest_command_length, command, description]
          end
        end

        output.puts
        output
      end.string + "=== Example:\n\nrails myapp\ncd myapp\ngit init\ngit add .\ngit commit -m \"my new app\"\nheroku create\ngit push heroku master\n\n"
    end