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/_clean.lua | |
| parent | e18c9d7a5718c80852fab0eb89161b4da28b7a94 (diff) | |
list action menu automaticlly
Diffstat (limited to 'xmake/scripts/action/_clean.lua')
| -rw-r--r-- | xmake/scripts/action/_clean.lua | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/xmake/scripts/action/_clean.lua b/xmake/scripts/action/_clean.lua index 5af3604b7..2a479157f 100644 --- a/xmake/scripts/action/_clean.lua +++ b/xmake/scripts/action/_clean.lua @@ -26,6 +26,7 @@ local _clean = _clean or {} -- load modules local clean = require("base/clean") local config = require("base/config") +local platform = require("platform/platform") -- done the given config function _clean.done() @@ -46,5 +47,38 @@ function _clean.done() return true end +-- the menu +function _clean.menu() + + return { + -- xmake c + shortname = 'c' + + -- usage + , usage = "xmake clean|c [options] [target]" + + -- description + , description = "Remove all binary and temporary 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", "Clean for the given target." } + } + } +end + -- return module: _clean return _clean |
