class RR::HelpRunner

Command runner to show help for other commands

Public Class Methods

run(args) click to toggle source

Runs the help command

  • args: array of command line parameters

# File lib/rubyrep/command_runner.rb, line 129
    def self.run(args)
      if args[0] == 'help' or args[0] == '--help'
        $stderr.puts(<<EOS)
Usage: #{$0} help [command]

Shows the help for the specified command.
EOS
        0
      else
        CommandRunner.run([args[0], '--help'])
      end
    end