The newaction function registers a new command-line action argument. For more information, see Command Line Arguments.
newaction (description)
Parameters
description is a table describing the new action. It may contain the following fields:
- trigger
- The string identifier of the action; what the user would type on the command line.
- description
- A short description of the action, to be displayed in the help text.
- execute
- A function to be executed when the action is fired.
See Also
Examples
Register a new action to install the software project.
newaction { trigger = "install", description = "Install the software", execute = function () os.copyfile("bin/debug/myprogram", "/usr/local/bin/myprogram") end }


