changeset 1756:a4b232aa0554

serve.luan - allow extra args
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 05 Feb 2023 22:08:50 -0700
parents 78cedcd6e1a4
children 0e59609c3173
files src/luan/modules/http/serve.luan
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
diff -r 78cedcd6e1a4 -r a4b232aa0554 src/luan/modules/http/serve.luan
--- a/src/luan/modules/http/serve.luan	Sat Feb 04 23:24:03 2023 -0700
+++ b/src/luan/modules/http/serve.luan	Sun Feb 05 22:08:50 2023 -0700
@@ -5,9 +5,9 @@
 local String = require "luan:String.luan"
 local to_number = String.to_number or error()
 
-local dir, port, extra = ...
+local dir, port = ...
 
-if dir==nil or extra~=nil then
+if dir==nil then
 	Io.stderr.write "usage: luan luan:http/serve.luan dir [port]\n"
 	return
 end