diff options
| author | ruki <[email protected]> | 2016-02-24 16:40:40 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-02-24 16:40:40 +0800 |
| commit | dae473cb200c72b9cd94fcfe04c431e59837012f (patch) | |
| tree | c10c5d804c50230530e7db8140f2174eb7965824 /xmake/plugins/macro.lua | |
| parent | bd2b7e61c8053041aae4f54537641529d6c10d49 (diff) | |
show main menu for tasks
Diffstat (limited to 'xmake/plugins/macro.lua')
| -rwxr-xr-x | xmake/plugins/macro.lua | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/xmake/plugins/macro.lua b/xmake/plugins/macro.lua index cebb468e4..60ae15e58 100755 --- a/xmake/plugins/macro.lua +++ b/xmake/plugins/macro.lua @@ -1,5 +1,37 @@ -- define task task("macro") + -- set category + set_task_category("plugin") + -- set menu - set_task_menu({}) + set_task_menu({ + -- usage + usage = "xmake macro|m [options] [name] [arguments]" + + -- description + , description = "Run the given macro" + + -- xmake m + , shortname = 'm' + + -- options + , options = + { + {'f', "file", "kv", nil, "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, "name", "v", nil, "Configure for the given macro name." } + + } + }) |
