aboutsummaryrefslogtreecommitdiffstats
path: root/_.lua
diff options
context:
space:
mode:
Diffstat (limited to '_.lua')
-rwxr-xr-x_.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/_.lua b/_.lua
index 3a92350..5c8963b 100755
--- a/_.lua
+++ b/_.lua
@@ -16,6 +16,7 @@ local _ = {}
16_.version = '0.0 crap' 16_.version = '0.0 crap'
17 17
18 18
19-- TODO - add the rest of the logging and debug level stuff from apt-panopticon.
19-- This sets the global values, here and in the caller. 20-- This sets the global values, here and in the caller.
20D = function(s) print('DEBUG ' .. s); io.flush() end 21D = function(s) print('DEBUG ' .. s); io.flush() end
21I = function(s) print('INFO ' .. s); io.flush() end 22I = function(s) print('INFO ' .. s); io.flush() end
@@ -25,6 +26,7 @@ E = function(s) print('ERROR ' .. s); io.flush() end
25C = function(s) print('CRITICAL ' .. s); io.flush() end 26C = function(s) print('CRITICAL ' .. s); io.flush() end
26 27
27 28
29-- TODO - move common stuff like -q, -v, --help, --version to an internal options table we scan as well.
28_.parse = function(args, options, confFile) 30_.parse = function(args, options, confFile)
29 local o = nil 31 local o = nil
30 32