diff src/luan/modules/http/serve.luan @ 1756:a4b232aa0554

serve.luan - allow extra args
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 05 Feb 2023 22:08:50 -0700
parents af22d6c120e4
children
line wrap: on
line diff
--- 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