module NG1BuildHelpers::Help
Public Class Methods
print_command_help(args, commands)
click to toggle source
# File lib/help.rb, line 12 def self.print_command_help(args, commands) command_name = args[0] command = commands.find do |c| c.command == command_name end if command command.help_function.call() else puts "Unknown command: #{command_name}" exit 1 end end
print_help()
click to toggle source
# File lib/help.rb, line 8 def self.print_help() puts "Usage: ng1build help command" end