bin/lucid in lucid-0.0.1 vs bin/lucid in lucid-0.0.2

- old
+ new

@@ -1,10 +1,15 @@ #!/usr/bin/env ruby +app_lib = File.expand_path('../lib', File.dirname(__FILE__)) +$LOAD_PATH.unshift(app_lib) unless $LOAD_PATH.include?(app_lib) +require 'lucid/app' + begin - require "lucid" -rescue LoadError - require_relative "../lib/lucid" + Lucid::App.new.run +rescue SystemExit + # noop +rescue Exception => e + STDERR.puts("#{e.message} (#{e.class})") + STDERR.puts(e.backtrace.join("\n")) + Kernel.exit(1) end - -app = Lucid::CLI.new(ARGV) -app.start