class Git::Daily::Help

Public Instance Methods

help() click to toggle source
# File lib/git-daily/command/help.rb, line 6
def help
  "help\tShow help (run \"help {subcommand}\" to get more help)"
end
run() click to toggle source
# File lib/git-daily/command/help.rb, line 10
def run
  subcommand = ARGV.shift
  if Git::Daily.application.commands.has_key?(subcommand)
    $stderr.puts Git::Daily.application.commands[subcommand].usage
  else
    $stderr.puts usage
  end
end
usage() click to toggle source
# File lib/git-daily/command/help.rb, line 19
      def usage
        r = <<-EOS
git-daily: command [options]

Usage:

EOS
        Git::Daily.application.commands.keys.sort.each do |key|
          r += "    #{Git::Daily.application.commands[key].help}\n"
        end
        r += "\n"
      end