Class: Svn::Log::Application::HelpCommand
- Inherits:
-
Object
- Object
- Svn::Log::Application::HelpCommand
- Defined in:
- lib/svnlog.rb
Overview
A command for displaying command usage
Instance Method Summary collapse
-
#initialize(argv) ⇒ HelpCommand
constructor
A new instance of HelpCommand.
- #run ⇒ Object
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
#run ⇒ Object
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 |