# File lib/rhc/help_formatter.rb, line 17 def initialize(command, instance_commands, runner) @command = command @actions = instance_commands.collect do |command_name, command_class| next if command_class.summary.nil? m = %r^#{command.name} ([^ ]+)/.match(command_name) # if we have a match and it is not an alias then we can use it m and command_name == command_class.name ? {:name => m[1], :summary => command_class.summary || ""} : nil end @actions.compact! @global_options = runner.options @runner = runner end
# File lib/rhc/help_formatter.rb, line 29 def program(*args) @runner.program *args end