diff options
| author | ruki <[email protected]> | 2015-06-09 21:26:04 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-06-09 21:26:04 +0800 |
| commit | d61169b7ea72b22ca89d5a6575865af9148d958e (patch) | |
| tree | 47d83d2cc74e1762a01b837686d16f2dc41a78d4 /xmake/scripts/action/_lua.lua | |
| parent | e18c9d7a5718c80852fab0eb89161b4da28b7a94 (diff) | |
list action menu automaticlly
Diffstat (limited to 'xmake/scripts/action/_lua.lua')
| -rw-r--r-- | xmake/scripts/action/_lua.lua | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/xmake/scripts/action/_lua.lua b/xmake/scripts/action/_lua.lua index 380c3438b..8801307d2 100644 --- a/xmake/scripts/action/_lua.lua +++ b/xmake/scripts/action/_lua.lua @@ -30,6 +30,7 @@ local utils = require("base/utils") local config = require("base/config") local string = require("base/string") local tools = require("tools/tools") +local platform = require("platform/platform") -- done the given config function _lua.done() @@ -100,5 +101,38 @@ function _lua.done() return false end +-- the menu +function _lua.menu() + + return { + -- xmake l + shortname = 'l' + + -- usage + , usage = "xmake lua|l [options] [script] [arguments]" + + -- description + , description = "Run the lua script." + + -- options + , options = + { + {'s', "string", "k", nil, "Run the lua string script." } + + , {} + , {'v', "verbose", "k", nil, "Print lots of verbose information." } + , {nil, "version", "k", nil, "Print the version number and exit." } + , {'h', "help", "k", nil, "Print this help message and exit." } + + , {} + , {nil, "script", "v", nil, "Run the given lua script." + , " - The script name from the xmake tool directory" + , " - The script file" + , " - The script string" } + , {nil, "arguments", "vs", nil, "The script arguments" } + } + } +end + -- return module: _lua return _lua |
