bin/emoruby
#!/usr/bin/env ruby
require 'emoruby'
require 'pathname'
Emoruby.register
if path_arg = ARGV.first
path = Pathname.new(path_arg).exist? ? Pathname.new(path_arg) : Pathname.pwd.join(path_arg)
Emoruby.eval(File.read(path))
else
puts "Usage:"
puts " emoruby \"path/to/some.emoruby\""
end