mirror of
https://github.com/ShadowKatStudios/OC-Minitel.git
synced 2024-11-23 02:28:05 +11:00
added a usage text to exportcomponent
This commit is contained in:
parent
f7cc00822a
commit
f896547ea9
@ -2,6 +2,10 @@ local component = require "component"
|
|||||||
local rpc = require "rpc"
|
local rpc = require "rpc"
|
||||||
local tA = {...}
|
local tA = {...}
|
||||||
|
|
||||||
|
if #tA < 1 then
|
||||||
|
print("Usage: exportcomponent <component address> [component address...]")
|
||||||
|
end
|
||||||
|
|
||||||
for k,v in ipairs(tA) do
|
for k,v in ipairs(tA) do
|
||||||
local px = component.proxy(component.get(v))
|
local px = component.proxy(component.get(v))
|
||||||
print(px.type.."_"..px.address)
|
print(px.type.."_"..px.address)
|
||||||
|
Loading…
Reference in New Issue
Block a user