mirror of
				https://github.com/kepler155c/opus
				synced 2025-10-31 15:43:00 +00:00 
			
		
		
		
	consistent command line processing-usage
This commit is contained in:
		| @@ -542,7 +542,7 @@ function Browser.associations:eventHandler(event) | |||||||
| end | end | ||||||
|  |  | ||||||
| --[[-- Startup logic --]]-- | --[[-- Startup logic --]]-- | ||||||
| local args = { ... } | local args = Util.parse(...) | ||||||
|  |  | ||||||
| Browser:setDir(args[1] or shell.dir()) | Browser:setDir(args[1] or shell.dir()) | ||||||
|  |  | ||||||
|   | |||||||
| @@ -99,6 +99,6 @@ function page:eventHandler(event) | |||||||
| 	end | 	end | ||||||
| end | end | ||||||
|  |  | ||||||
| local args = { ... } | local args = Util.parse(...) | ||||||
| UI:setPage(args[1] and topicPage or page, args[1]) | UI:setPage(args[1] and topicPage or page, args[1]) | ||||||
| UI:pullEvents() | UI:pullEvents() | ||||||
|   | |||||||
| @@ -376,7 +376,7 @@ function page:executeStatement(statement) | |||||||
| 	end | 	end | ||||||
| end | end | ||||||
|  |  | ||||||
| local args = { ... } | local args = Util.parse(...) | ||||||
| if args[1] then | if args[1] then | ||||||
| 	command = 'args[1]' | 	command = 'args[1]' | ||||||
| 	sandboxEnv.args = args | 	sandboxEnv.args = args | ||||||
|   | |||||||
| @@ -356,7 +356,7 @@ Event.on('modem_message', function(_, side, chan, reply, msg, dist) | |||||||
| 	end | 	end | ||||||
| end) | end) | ||||||
|  |  | ||||||
| local args = {...} | local args = Util.parse(...) | ||||||
| if args[1] then | if args[1] then | ||||||
| 	local id = tonumber(args[1]) | 	local id = tonumber(args[1]) | ||||||
| 	if id then | 	if id then | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 kepler155c@gmail.com
					kepler155c@gmail.com