added detailed information
This commit is contained in:
@@ -1,4 +1,9 @@
|
||||
return function(tbl)
|
||||
local show_all = false
|
||||
for _, v in pairs(arg) do
|
||||
if v == "-a" or v == "--all" then show_all = true end
|
||||
end
|
||||
|
||||
for i=1, #tbl do
|
||||
local this_number = tbl[i][1]
|
||||
local this_word = tbl[i][2]
|
||||
@@ -14,8 +19,20 @@ return function(tbl)
|
||||
text = text .. colorTextBackground(COLOR.Black,colorText(COLOR.Green,this_word[2]))
|
||||
|
||||
print(text)
|
||||
text = ""
|
||||
text = text .. colorTextBackground(COLOR.Black,colorText(COLOR.Blue,this_word[4]))
|
||||
text = text .. colorTextBackground(COLOR.Black,colorText(COLOR.Blue,this_word[5]))
|
||||
if show_all then
|
||||
text = ""
|
||||
if this_word[4] ~= "" then
|
||||
text = text .. colorText(COLOR.HighCyan,"\tCanon origin: ")
|
||||
text = text .. colorText(COLOR.HighCyan,this_word[4])
|
||||
print(text)
|
||||
end
|
||||
text = ""
|
||||
if this_word[5] ~= "" then
|
||||
text = text .. colorText(COLOR.HighPurple,"\tMeta origin: ")
|
||||
text = text .. colorText(COLOR.HighPurple,this_word[5])
|
||||
print(text)
|
||||
end
|
||||
print("")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user