#!/usr/bin/env ruby require 'pathname' require 'rubygems' file_path = Pathname.new(__FILE__).realpath require File.join(File.dirname(File.dirname(file_path)), 'wp_fire.rb') libdir = File.join(File.dirname(File.dirname(file_path)), "lib") $LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir) begin WpFire::MainCommand.run rescue Exception => e puts e.message if $DEBUG puts $! puts $@ end end