#!/usr/bin/env ruby require 'optparse' ARGV.options do |opts| opts.banner = "Usage: #{File.basename($0)} 'puts Person[1].name' [options]" opts.separator '' opts.on('-h', '--help', 'Show this help message.') { puts opts; exit } opts.parse! end code = ARGV.shift $NITRO_NO_INVOKE = true $:.unshift File.join(File.dirname(__FILE__), '..') $:.unshift '/home/gmosx/public/glue/lib', '/home/gmosx/public/og/lib', '/home/gmosx/public/nitro/lib' require 'rubygems' require 'run.rb' eval(code)