comparison core/src/luan/cmd_line.luan @ 251:705d14f4d8ee

start web testing git-svn-id: https://luan-java.googlecode.com/svn/trunk@252 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Sun, 19 Oct 2014 03:38:47 +0000
parents 27abb3746917
children f1f7d8c7e94e
comparison
equal deleted inserted replaced
250:2b6f51d7af40 251:705d14f4d8ee
1 import "String" 1 import "String"
2 import "Table" 2 import "Table"
3 import "Io"
3 4
4 5
5 local standalone_usage = [=[ 6 local standalone_usage = [=[
6 usage: java luan.CmdLine [options] [script [args]] 7 usage: java luan.CmdLine [options] [script [args]]
7 Available options are: 8 Available options are:
67 end 68 end
68 try 69 try
69 local main_file = load_file(file) 70 local main_file = load_file(file)
70 main_file( Table.unpack(_G.arg) ) 71 main_file( Table.unpack(_G.arg) )
71 catch e do 72 catch e do
72 print(e) 73 Io.print_to(Io.stderr, e )
73 end 74 end
74 end 75 end
75 if interactive then 76 if interactive then
76 Debug.debug("> ") 77 Debug.debug("> ")
77 end 78 end