class SakaiInfo::CLI::Help

Constants

STRINGS

Public Class Methods

help(topic = :default, io = STDOUT) click to toggle source
# File lib/sakai-info/cli/help.rb, line 530
def self.help(topic = :default, io = STDOUT)
  topic ||= :default
  if STRINGS.has_key? topic
    io.puts STRINGS[topic]
  else
    STDERR.puts "ERROR: help topic '#{topic}' was unrecognized"
    STDERR.puts
    CLI::Help.help(:default, STDERR)
    exit 1
  end
end