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/_install.lua | |
| parent | e18c9d7a5718c80852fab0eb89161b4da28b7a94 (diff) | |
list action menu automaticlly
Diffstat (limited to 'xmake/scripts/action/_install.lua')
| -rw-r--r-- | xmake/scripts/action/_install.lua | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/xmake/scripts/action/_install.lua b/xmake/scripts/action/_install.lua index 5f5bfac9b..af7edc104 100644 --- a/xmake/scripts/action/_install.lua +++ b/xmake/scripts/action/_install.lua @@ -26,6 +26,7 @@ local _install = _install or {} -- load modules local utils = require("base/utils") local config = require("base/config") +local platform = require("platform/platform") -- done the given config function _install.done() @@ -35,5 +36,39 @@ function _install.done() return true end +-- the menu +function _install.menu() + + return { + -- xmake i + shortname = 'i' + + -- usage + , usage = "xmake install|i [options] [target]" + + -- description + , description = "Package and install the project binary files." + + -- options + , options = + { + {'f', "file", "kv", "xmake.lua", "Read a given xmake.lua file." } + , {'P', "project", "kv", nil, "Change to the given project directory." + , "Search priority:" + , " 1. The Given Command Argument" + , " 2. The Envirnoment Variable: XMAKE_PROJECT_DIR" + , " 3. The Current Directory" } + + , {} + , {'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, "target", "v", "all", "Install the given target." } + } + } +end + -- return module: _install return _install |
