File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ local config;
4242local sourceFile ;
4343local outFile ;
4444local luaVersion ;
45+ local prettyPrint ;
4546
4647Prometheus .colors .enabled = true ;
4748
@@ -87,6 +88,8 @@ while i <= #arg do
8788 luaVersion = " Lua51" ;
8889 elseif curr == " --LuaU" then
8990 luaVersion = " LuaU" ;
91+ elseif curr == " --pretty" then
92+ prettyPrint = true ;
9093 else
9194 Prometheus .Logger :warn (string.format (" The option \" %s\" is not valid and therefore ignored" , curr ));
9295 end
110113
111114-- Add Option to override Lua Version
112115config .LuaVersion = luaVersion or config .LuaVersion ;
116+ config .PrettyPrint = prettyPrint ~= nil and prettyPrint or config .PrettyPrint ;
113117
114118if not file_exists (sourceFile ) then
115119 Prometheus .Logger :error (string.format (" The File \" %s\" was not found!" , sourceFile ));
You can’t perform that action at this time.
0 commit comments