luash shell first

This commit is contained in:
2025-08-29 01:07:25 +01:00
parent 46ccd50479
commit 8adcfb1852

8
luash
View File

@@ -302,14 +302,14 @@ end
-- 1. Check for an input file or REPL mode
local filename = arg[1]
if not filename then
if filename == "-h" or filename == "--help" then
print("Usage: luash <script.luash>")
print(" luash -i # Interactive mode")
print(" luash -h # Show this help")
return
elseif filename == "-i" or filename == "--interactive" then
-- Start interactive REPL (defined below)
elseif not filename or filename == "-i" or filename == "--interactive" then
start_repl()
return
end
local file = io.open(filename, "r")