diff options
Diffstat (limited to '')
-rwxr-xr-x | _.lua | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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. |
20 | D = function(s) print('DEBUG ' .. s); io.flush() end | 21 | D = function(s) print('DEBUG ' .. s); io.flush() end |
21 | I = function(s) print('INFO ' .. s); io.flush() end | 22 | I = function(s) print('INFO ' .. s); io.flush() end |
@@ -25,6 +26,7 @@ E = function(s) print('ERROR ' .. s); io.flush() end | |||
25 | C = function(s) print('CRITICAL ' .. s); io.flush() end | 26 | C = 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 | ||