consistent command line processing-usage

This commit is contained in:
kepler155c@gmail.com 2019-07-23 13:29:43 -06:00
parent 5dd3001ffd
commit e084c733f8
4 changed files with 4 additions and 4 deletions

View File

@ -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())

View File

@ -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()

View File

@ -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

View File

@ -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