Class: Svn::Log::Application::HelpCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/svnlog.rb

Overview

A command for displaying command usage

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ HelpCommand

Returns a new instance of HelpCommand.



53
54
# File 'lib/svnlog.rb', line 53

def initialize(argv)
end

Instance Method Details

#runObject



56
57
58
59
60
61
62
63
64
65
# File 'lib/svnlog.rb', line 56

def run
  puts "Usage: svnlog <command> [options]"
  puts
  puts "Available commands are:"
  for name in Application.commands.keys.sort
    puts "  #{name}"
  end
  puts
  puts "Type \"svnlog <command> --help\" for help on a specific command."
end