#!/usr/bin/env ruby -w require 'optparse' require 'rubygems' require 'hoe' require 'fileutils' require 'erb' XIF = 'FI' + 'X' # prevents extra hits on my TAG reporter option = { :style => "default", :subdir => nil, } def check_subdir option if option[:subdir] then warn "ERROR: you can't specify multiple subdirs" abort opts.to_s end end op = OptionParser.new do |opts| opts.banner = "Usage: sow [options] project_name" opts.separator "Standard options:" opts.on("-t", "--trunk", "Add project to subdir under 'trunk'.") do check_subdir option option[:subdir] = "trunk" end opts.on("-d", "--dev", "Add project to subdir under 'dev'.") do check_subdir option option[:subdir] = "dev" end opts.on("-s style", "--style style", String, "Use template