#!/usr/bin/env ruby require File.dirname(__FILE__) + '/../lib/erlapi' require 'optparse' options = {} OptionParser.new do |opts| opts.banner = "Usage: erlapi -o [output_dir] -s [source_dir]" opts.on("-o", "--output OUTPUT_DIR", "Output dir") do |o| options[:output_dir] = o end opts.on("-s", "--source SOURCE_DIR", "Source dir with erlang docs") do |s| options[:source_dir] = s end opts.on_tail("-h", "--help", "Show this message") do puts opts exit end end.parse! Erlapi::Cmd.start!(options)