#!/usr/bin/env ruby $:.unshift File.join(File.dirname(__FILE__), *%w[.. lib]) require 'twog' require 'optparse' help = < 0 puts "Invalid options. Run `twog --help` for assistance." exit(1) end raise "please run 'rake twog:conf_create' to create the ~/.twog.yaml file" unless File.exists?("#{ENV['HOME']}/.twog.yaml") conf = YAML.load_file("#{ENV['HOME']}/.twog.yaml") Twog.run(conf)