From 7fba53bf440a126b904d2dc2641f2178ed30d72c Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 24 Dec 2019 19:33:48 +1000 Subject: Log arguments. --- apt-panopticommon.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apt-panopticommon.lua b/apt-panopticommon.lua index accfcd5..d8ab129 100644 --- a/apt-panopticommon.lua +++ b/apt-panopticommon.lua @@ -101,7 +101,9 @@ APT.options = }, } +APT.args = {} APT.parseArgs = function(args) + APT.args = args local arg = {} local sendArgs = "" if 0 ~= #(args) then @@ -317,6 +319,9 @@ APT.logPre = function() if nil ~= APT.logFile then APT.logFile:write("\n") APT.logFile:write("\n") + APT.logFile:write("
\n")
+	APT.logFile:write(APT.dumpTable(APT.args, '', 'Arguments'))
+	APT.logFile:write("
\n") end end APT.logPost = function() -- cgit v1.1