Module luarocks.command_line
Functions for command-line scripts.
Functions
die (message) | Display an error message and exit. |
run_command (...) | Main command-line processor. |
Functions
- die (message)
-
Display an error message and exit.
Parameters
- message: string: The error message.
- run_command (...)
-
Main command-line processor. Parses input arguments and calls the appropriate driver function to execute the action requested on the command-line, forwarding to it any additional arguments passed by the user. Uses the global table "commands", which contains the loaded modules representing commands.
Parameters
- ...: string: Arguments given on the command-line.