summaryrefslogtreecommitdiff
path: root/xmake/core/base/task.lua
diff options
context:
space:
mode:
authorOpportunity <[email protected]>2020-01-20 22:18:58 +0800
committerOpportunity <[email protected]>2020-01-20 22:21:47 +0800
commit08d00484b84526bf8b20f8ff9016ad2c0fc851ae (patch)
treea5eac2509adfcd291e14472aaa8c364549a68fcd /xmake/core/base/task.lua
parentd3e45885b8fa8e905e061b9c14f0cc34ba35b5f5 (diff)
fix code style
Diffstat (limited to 'xmake/core/base/task.lua')
-rw-r--r--xmake/core/base/task.lua8
1 files changed, 2 insertions, 6 deletions
diff --git a/xmake/core/base/task.lua b/xmake/core/base/task.lua
index 39a3711da..7ffcdfcc4 100644
--- a/xmake/core/base/task.lua
+++ b/xmake/core/base/task.lua
@@ -37,12 +37,8 @@ function task.common_options()
{
{'q', "quiet", "k", nil, "Quiet operation." }
, {'y', "yes", "k", nil, "Input yes by default if need user confirm." }
- , {nil, "confirm", "kv", nil, "Input the given result if need user confirm.",
- " - y|yes",
- " - n|no",
- " - d|def"
- , values = function (complete)
- if not complete then return end
+ , {nil, "confirm", "kv", nil, "Input the given result if need user confirm."
+ , values = function ()
return {"yes", "no", "def"}
end }
, {'v', "verbose", "k", nil, "Print lots of verbose information for users." }