#!/usr/bin/env ruby # # Created on 2007-12-12. # Author: Cory O'Daniel # Copyright (c) 2007. All rights reserved. require 'rubygems' require 'warning_shot' include RippleNetworks::WarningShot require 'optparse' OPTIONS = DepChecker::DEFAULTS.clone MANDATORY_OPTIONS = DepChecker::MANDATORY_OPTIONS.clone parser = OptionParser.new do |opts| opts.banner = < opio puts opio puts opts exit rescue OptionParser::InvalidArgument => opia puts opia puts opts exit end if MANDATORY_OPTIONS && MANDATORY_OPTIONS.find { |OPTIONS| options[option.to_sym].nil? } puts opts; exit end end if OPTIONS[:templates] == false DepChecker.new(OPTIONS).run() else DepChecker::generate_templates(OPTIONS[:templates]) end