mirror of
https://github.com/kepler155c/opus
synced 2024-12-31 19:00:27 +00:00
consistent command line processing-usage
This commit is contained in:
parent
5dd3001ffd
commit
e084c733f8
@ -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())
|
||||
|
||||
|
@ -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()
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user