bin/livetext in livetext-0.8.87 vs bin/livetext in livetext-0.8.88
- old
+ new
@@ -6,16 +6,10 @@
def handle_lt3(src)
abort "Unknown file extension" unless src =~ /.lt3$/
end
-# Main
-
-x = Livetext.new
-
-@backtrace = false
-
def usage
puts <<-EOF
Usage:
livetext filename
@@ -50,10 +44,16 @@
EOF
puts
exit
end
+# Main
+
+x = Livetext.new
+
+@backtrace = false
+
usage if ARGV.empty?
loop do
arg = ARGV.shift
break if arg.nil?
@@ -77,10 +77,10 @@
usage
when "-i", "--install"
lib = ARGV.shift
system("cp #{lib} #{Livetext::Path}/../plugin/")
when Object
- x.process_file(arg) # , @backtrace)
+ x.process_file(arg, true) # , @backtrace)
end
end
puts x.body