#!/usr/bin/ruby $:.unshift File.join(File.dirname(__FILE__), "..", "lib") require 'log4r' require 'ConstraintSolver' include Log4r module ConstraintSolver class ConstraintSolverBin < ConstraintSolver def main if ARGV.empty? eval STDIN.read else ARGV.each { |file| eval File.read(file) } end end c = new c.main end end