#!/usr/bin/env ruby lib = File.expand_path(File.dirname(__FILE__) + '/../lib') $LOAD_PATH.unshift(lib) if File.directory?(lib) && !$LOAD_PATH.include?(lib) args = ARGV.dup ARGV.clear require 'tane' options = Tane::Parser.parse(args) command = args.shift.strip rescue 'help' command = 'help' if command == '' klass = Tane::Commands.const_get command.capitalize klass.fire(options, args)