#!/usr/bin/env ruby $LOAD_PATH << ::File.expand_path('../lib', __FILE__) require 'proxy_tester' begin ProxyTester::Cli::Main.start rescue StandardError => e ProxyTester::Actions::HandleError.new(e).run rescue Interrupt => e ProxyTester::Actions::HandleError.new(e).run rescue SignalException => e exception = case e.signm when 'SIGTERM' ProxyTester::Exceptions::SIGTERM.new(e.message) else e end ProxyTester::Actions::HandleError.new(exception).run end