diff --git a/sys/apps/Files.lua b/sys/apps/Files.lua index 019979e..9f17255 100644 --- a/sys/apps/Files.lua +++ b/sys/apps/Files.lua @@ -542,7 +542,7 @@ function Browser.associations:eventHandler(event) end --[[-- Startup logic --]]-- -local args = { ... } +local args = Util.parse(...) Browser:setDir(args[1] or shell.dir()) diff --git a/sys/apps/Help.lua b/sys/apps/Help.lua index 72b5308..ffd0486 100644 --- a/sys/apps/Help.lua +++ b/sys/apps/Help.lua @@ -99,6 +99,6 @@ function page:eventHandler(event) end end -local args = { ... } +local args = Util.parse(...) UI:setPage(args[1] and topicPage or page, args[1]) UI:pullEvents() diff --git a/sys/apps/Lua.lua b/sys/apps/Lua.lua index a7442be..45cec04 100644 --- a/sys/apps/Lua.lua +++ b/sys/apps/Lua.lua @@ -376,7 +376,7 @@ function page:executeStatement(statement) end end -local args = { ... } +local args = Util.parse(...) if args[1] then command = 'args[1]' sandboxEnv.args = args diff --git a/sys/apps/Sniff.lua b/sys/apps/Sniff.lua index 6a683eb..3a8257c 100644 --- a/sys/apps/Sniff.lua +++ b/sys/apps/Sniff.lua @@ -356,7 +356,7 @@ Event.on('modem_message', function(_, side, chan, reply, msg, dist) end end) -local args = {...} +local args = Util.parse(...) if args[1] then local id = tonumber(args[1]) if id then