add set_args function

This commit is contained in:
Evgeny
2021-08-03 11:40:33 +03:00
parent e42c1950ae
commit c254466953
3 changed files with 39 additions and 0 deletions

13
args-test2.lua Normal file
View File

@@ -0,0 +1,13 @@
-- arguments_help = "The word recorded here will be displayed on the screen."
-- arguments_default = "Word"
function on_resume()
aio:set_args({"Word#1", "Word#2"})
local args = aio:get_args()
if args == nil then
ui:show_text("args is empty")
else
ui:show_text("arg1: "..args[1])
end
end