12-29-2013, 06:21 PM
I think it's easier to actually do things like I do - put all the commands in a table, with their handlers, permissions, help and anything else needed, and then use a simple for-loop to register the commands, another for-loop for printing the detailed help... Add another table around it, wrapping this into its Commands member, and adding a PluginDescription member, PluginName and PluginVersion, and you have exactly the info file that ThuGie wants:
g_PluginInfo =
{
Name = "MySuperPlugin",
Version = "0.1a",
Date = "2013_12_29",
Description = [[
This plugin is super, because it has a proper info file and everything!
]]
Commands =
{
Command1 = { ... },
Command2 = { ... },
},
}

