summaryrefslogtreecommitdiff
path: root/xmake/core/base/main.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-02-24 16:40:40 +0800
committerruki <[email protected]>2016-02-24 16:40:40 +0800
commitdae473cb200c72b9cd94fcfe04c431e59837012f (patch)
treec10c5d804c50230530e7db8140f2174eb7965824 /xmake/core/base/main.lua
parentbd2b7e61c8053041aae4f54537641529d6c10d49 (diff)
show main menu for tasks
Diffstat (limited to 'xmake/core/base/main.lua')
-rw-r--r--xmake/core/base/main.lua43
1 files changed, 2 insertions, 41 deletions
diff --git a/xmake/core/base/main.lua b/xmake/core/base/main.lua
index 54008aa21..3e8289ba9 100644
--- a/xmake/core/base/main.lua
+++ b/xmake/core/base/main.lua
@@ -40,47 +40,8 @@ local menu =
-- copyright
, copyright = "Copyright (C) 2015-2016 Ruki Wang, tboox.org\nCopyright (C) 2005-2014 Mike Pall, luajit.org"
- -- build project: xmake
-, main =
- {
- -- usage
- usage = "xmake [action] [options] [target]"
-
- -- description
- , description = "Build the project if no given action."
-
- -- actions
- , actions = action.list
-
- -- options
- , options =
- {
- {'b', "build", "k", nil, "Build project. This is default building mode and optional." }
- , {'u', "update", "k", nil, "Only relink and update the binary files." }
- , {'r', "rebuild", "k", nil, "Rebuild the project." }
-
- , {}
- , {'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" }
-
-
- , {}
- , {'j', "jobs", "kv", nil, "Specifies the number of jobs to build simultaneously" }
- , {'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", "Build the given target." }
- }
- }
-
- -- the actions: xmake [action]
-, action.menu
+ -- the tasks: xmake [task]
+, task.menu
}