#!/usr/bin/env ruby require 'optparse' require 'ostruct' $stdout.sync = true $stderr.sync = true options = OpenStruct.new( 'pid' => nil, 'sdk_path' => nil, 'uid' => nil, 'gems_to_include' => [] ) module DebugPrinter class << self attr_accessor :cli_debug def print_debug(msg) if DebugPrinter.cli_debug $stderr.puts msg end end end end DebugPrinter.cli_debug = ARGV.include? '--debug' opts = OptionParser.new do |opts| # TODO need some banner opts.banner = <