#!/usr/bin/env ruby # fix load path lib = File.expand_path('../../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'chkex' arg = ARGV.first if File.file?(arg) Chkex.run(arg) else Chkex.run_one(arg) end