#!/usr/bin/env ruby require 'reap/application' HELP = <<-END Usage: #{File.basename($0)} [options] Gerneates local ri api documentation. The generated files are stored in the conventional location doc/ri. These are useful to checking ri docs look good. Try it with a tool such as webri or rbbr. END if ARGV.include?('--help') puts HELP else app = Reap::Application.new app.ridoc end