summaryrefslogtreecommitdiff
path: root/xmake/core/base/option.lua
diff options
context:
space:
mode:
authorOpportunity <[email protected]>2020-01-15 15:16:08 +0800
committerOpportunity <[email protected]>2020-01-15 15:16:08 +0800
commit546d83dd435780a6ea69a5b24a12c06b294dd2c0 (patch)
treed9d98b7c1005dc5df4759d2a3a9d3b0f47eee606 /xmake/core/base/option.lua
parentd7662a8916400389fca579772bfdaedadd5e640e (diff)
Fix
Diffstat (limited to 'xmake/core/base/option.lua')
-rw-r--r--xmake/core/base/option.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/xmake/core/base/option.lua b/xmake/core/base/option.lua
index c02a29659..a1f628cdb 100644
--- a/xmake/core/base/option.lua
+++ b/xmake/core/base/option.lua
@@ -26,8 +26,6 @@ local cli = require("base/cli")
local table = require("base/table")
local colors = require("base/colors")
-local dump = require("base/dump")
-
-- ifelse, a? b : c
function option._ifelse(a, b, c)
if a then return b else return c end
@@ -347,9 +345,8 @@ function option.parse(argv, options, opt)
table.insert(o, arg.value)
end
else
- return nil, string.format("Invalid %s: %s", arg.type, arg)
+ return nil, "invalid argument: " .. arg.value
end
- return nil, "invalid argument: " .. arg.value
end
end
end