#!/usr/bin/env ruby lib_path = File.expand_path("../lib", __dir__) $LOAD_PATH.unshift(lib_path) unless $LOAD_PATH.include?(lib_path) require "wsdirector-cli" begin WSDirector::CLI.new.run rescue => e raise e if $DEBUG STDERR.puts e.message STDERR.puts e.backtrace.take(10).join("\n") if ENV["WSDIRECTOR_DEBUG"] == "1" exit 1 end