added a way to edit, remove, and add words

This commit is contained in:
UndeadMaelys
2022-03-24 21:47:24 +01:00
parent 39335c7e09
commit 93da415c03
9 changed files with 396 additions and 177 deletions

View File

@@ -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] ~= ""