diff options
Diffstat (limited to '')
-rw-r--r-- | apt-panopticommon.lua | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/apt-panopticommon.lua b/apt-panopticommon.lua index a8de87d..2bb5a16 100644 --- a/apt-panopticommon.lua +++ b/apt-panopticommon.lua | |||
@@ -30,20 +30,20 @@ APT.options = | |||
30 | bandwidth = | 30 | bandwidth = |
31 | { | 31 | { |
32 | typ = "number", | 32 | typ = "number", |
33 | help = ' 0 = low - HTTP tests for all IPs of all mirrors (HEAD tests), but not URL sanity tests.\n' .. | 33 | help = '\n 0 = low - HTTP tests for all IPs of all mirrors (HEAD tests), but not URL sanity tests.\n' .. |
34 | ' 1 = medium - Also HTTP(S) redirect tests, other protocols, download Release files over HTTP, and check them.\n' .. | 34 | ' 1 = medium - Also HTTP(S) redirect tests, other protocols, download Release files over HTTP, and check them.\n' .. |
35 | ' 2 = high - Also download Packages.xz files that changed, unpack and check them.\n' .. | 35 | ' 2 = high - Also download Packages.xz files that changed, unpack and check them.\n' .. |
36 | ' Also download and check InRelease files\n.' .. | 36 | ' Also download and check InRelease files.\n' .. |
37 | ' Pick a few small packages, download them, check their SHA512.\n' .. | 37 | ' Pick a few small packages, download them, check their SHA512.\n' .. |
38 | ' 3 = more - Also pick more files and packages, some for each reelase / arch.\n' .. | 38 | ' 3 = more - Also pick more files and packages, some for each release / arch.\n' .. |
39 | ' 4 = all - Do absolutely everything.\n' .. | 39 | ' 4 = all - Do absolutely everything.\n' .. |
40 | ' Actually download some Contents files, and some more Packages.xz, and package files.', | 40 | ' Actually download some Contents files, and some more Packages.xz, and package files.', |
41 | value = 2, | 41 | value = 2, |
42 | }, | 42 | }, |
43 | referenceSite = | 43 | referenceSite = |
44 | { | 44 | { |
45 | typ = "string", | 45 | typ = "string", |
46 | help = "The mirror that is used as a reference, coz the oters sync to it.", | 46 | help = "The mirror that is used as a reference, coz the others sync to it.", |
47 | value = "pkgmaster.devuan.org", | 47 | value = "pkgmaster.devuan.org", |
48 | }, | 48 | }, |
49 | roundRobin = | 49 | roundRobin = |
@@ -134,9 +134,15 @@ APT.parseArgs = function(args) | |||
134 | local option = "" | 134 | local option = "" |
135 | for i, a in pairs(args) do | 135 | for i, a in pairs(args) do |
136 | if ("--help" == a) or ("-h" == a) then | 136 | if ("--help" == a) or ("-h" == a) then |
137 | print("I should write some docs, huh? Read README.md for instructions.") | 137 | print("Check the health of Devuan Linux package mirrors.") |
138 | for k, v in pairs(APT.options) do | ||
139 | print("") | ||
140 | print('--' .. k .. ' ' .. v.help) | ||
141 | end | ||
142 | os.exit() | ||
138 | elseif "--version" == a then | 143 | elseif "--version" == a then |
139 | print("apt-panopticon version 0.2") | 144 | print("apt-panopticon version 0.2") |
145 | os.exit() | ||
140 | elseif "-v" == a then | 146 | elseif "-v" == a then |
141 | APT.verbosity = APT.verbosity + 1 | 147 | APT.verbosity = APT.verbosity + 1 |
142 | sendArgs = sendArgs .. a .. " " | 148 | sendArgs = sendArgs .. a .. " " |