class Heroku::Command::Help

list commands and display help

Constants

PRIMARY_NAMESPACES

Public Class Methods

usage_for_command(command) click to toggle source
# File lib/heroku/command/help.rb, line 27
def self.usage_for_command(command)
  command = new.send(:commands)[command]
  "Usage: heroku #{command[:banner]}" if command
end

Public Instance Methods

index() click to toggle source

help [COMMAND]

list available commands or display help for a specific command

# File lib/heroku/command/help.rb, line 16
def index
  if command = args.shift
    help_for_command(command)
  else
    help_for_root
  end
end