added a way to edit, remove, and add words
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
return function(tbl)
|
||||
function printOutputTable(tbl,all)
|
||||
local show_all = false
|
||||
|
||||
for _, v in pairs(arg) do
|
||||
|
||||
for _, v in pairs(arg) do
|
||||
if v == "-a" or v == "--all" then show_all = true end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
if all then
|
||||
show_all = true
|
||||
end
|
||||
|
||||
for i=1, #tbl do
|
||||
local this_number = tbl[i][1]
|
||||
local this_word = tbl[i][2]
|
||||
@@ -18,7 +22,7 @@ return function(tbl)
|
||||
text = text .. colorTextBackground(COLOR.Black,colorText(COLOR.HighBlue,this_word[1]))
|
||||
text = text .. colorTextBackground(COLOR.Black,colorText(COLOR.Gray,this_word[3]))
|
||||
text = text .. colorTextBackground(COLOR.Black,colorText(COLOR.Green,this_word[2]))
|
||||
|
||||
|
||||
print(text)
|
||||
if show_all then
|
||||
if this_word[4] ~= ""
|
||||
|
||||
Reference in New Issue
Block a user