You might also like to take a look at how to set up slash commands:
Code:
SlashCmdList["ParaUISlashCOMMAND"] = function(msg)
if not msg or msg == "" or msg == "help" or msg == "about" then
print("some general information on what this addon does and how to use it")
else
-- some more slash command processing.. string.find() inside
-- an ipairs(listOfArguments) loop comes to mind.
end
end
SLASH_ParaUISlashCOMMAND1 = "/paraui" -- it's not case sensitive, as far as I know.