2011-04-12 19:07:47 +02:00
|
|
|
-------
|
|
|
|
-- A script.
|
|
|
|
-- Scripts are not containers in the sense that modules are,
|
|
|
|
-- (although perhaps the idea of 'commands' could be adopted for some utilities)
|
|
|
|
-- It allows any upfront script comments to be included in the
|
2012-03-02 12:19:34 +01:00
|
|
|
-- documentation. Any long string marked with the 'usage' tag will also appear
|
|
|
|
-- in this area.
|
|
|
|
--
|
2011-04-12 19:07:47 +02:00
|
|
|
-- @script modtest
|
|
|
|
|
2012-03-02 12:19:34 +01:00
|
|
|
--- @usage
|
|
|
|
local usage = [[
|
|
|
|
modtest NAME
|
|
|
|
where NAME is your favourite name!
|
|
|
|
|
|
|
|
]]
|
|
|
|
|
|
|
|
print ('hello',arg[1])
|