bin/neat in rubyneat-0.3.5.alpha.5 vs bin/neat in rubyneat-0.3.5.alpha.6

- old
+ new

@@ -1,14 +1,17 @@ #!/usr/bin/env ruby -require 'thor' -require 'semver' - # Be sure rnlib is added to the library path -neatpath = File.expand_path '..', File.dirname(__FILE__) +NEAT_PATH = File.expand_path '..', File.dirname(__FILE__) +NEAT_EXECUTABLE = File.expand_path 'bin/neat', Dir.pwd + %w{ lib neater neater/rnlib }.each do |dir| - $:.unshift File.join([neatpath, dir]) + $:.unshift File.join([NEAT_PATH, dir]) end require 'rubyneat/cli' -RubyNEAT::Cli::Main.start +unless File.exists? NEAT_EXECUTABLE + RubyNEAT::Cli::NewMain.start +else + exec NEAT_EXECUTABLE, *ARGV +end