File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ local function lines_from(file)
4141local config ;
4242local sourceFile ;
4343local outFile ;
44+ local luaVersion ;
4445
4546Prometheus .colors .enabled = true ;
4647
@@ -82,6 +83,10 @@ while i <= #arg do
8283 outFile = arg [i ];
8384 elseif curr == " --nocolors" then
8485 Prometheus .colors .enabled = false ;
86+ elseif curr == " --Lua51" then
87+ luaVersion = " Lua51" ;
88+ elseif curr == " --LuaU" then
89+ luaVersion = " LuaU" ;
8590 else
8691 Prometheus .Logger :warn (string.format (" The option \" %s\" is not valid and therefore ignored" , curr ));
8792 end
@@ -103,6 +108,9 @@ if not config then
103108 config = Prometheus .Presets .Minify ;
104109end
105110
111+ -- Add Option to override Lua Version
112+ config .LuaVersion = luaVersion or config .LuaVersion ;
113+
106114if not file_exists (sourceFile ) then
107115 Prometheus .Logger :error (string.format (" The File \" %s\" was not found!" , sourceFile ));
108116end
You can’t perform that action at this time.
0 commit comments