changeset 346:dc21bd260690

change cmd_line to take a URI
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 12 Apr 2015 06:54:14 -0600
parents c7b2ee4c6ee9
children 612a283b3d14
files core/src/luan/cmd_line.luan
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/core/src/luan/cmd_line.luan	Fri Apr 10 02:49:31 2015 -0600
+++ b/core/src/luan/cmd_line.luan	Sun Apr 12 06:54:14 2015 -0600
@@ -11,7 +11,7 @@
 
 
 local standalone_usage = [=[
-usage: java luan.Luan [options] [script [args]]
+usage: java luan.Luan [options] [script-URI [args]]
 Available options are:
   -e stat  execute string 'stat'
   -i       enter interactive mode after executing 'script'
@@ -75,7 +75,7 @@
 	end
 	try {
 		function()
-			local main_file = load_file("file:"..file)
+			local main_file = load_file(file..".luan")
 			main_file( Table.unpack(Luan.arg) )
 		end;
 		catch = function(e)