summaryrefslogtreecommitdiff
path: root/xmake/core/base/cli.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-08-14 00:42:55 +0800
committerruki <[email protected]>2020-08-14 00:42:55 +0800
commit4ebda335327f0cd6b5eea14f076c1d455b8de853 (patch)
treef6a1b1b371c70a6d9fa92ac2ed55b2a6cbb9ee3e /xmake/core/base/cli.lua
parent5dd8ae71559f4a1ed3cca9addcd55ccfe16dfa35 (diff)
improve xmake tool
Diffstat (limited to 'xmake/core/base/cli.lua')
-rw-r--r--xmake/core/base/cli.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/core/base/cli.lua b/xmake/core/base/cli.lua
index effa1a0f2..c163c3c90 100644
--- a/xmake/core/base/cli.lua
+++ b/xmake/core/base/cli.lua
@@ -27,6 +27,7 @@ local string = require("base/string")
local hashset = require("base/hashset")
segment.__index = segment
+cli._segment = segment
function segment:__tostring()
return self.string
@@ -121,7 +122,5 @@ function cli.parsev(argv, flags)
return parsed
end
-cli._segment = segment
-
-- return module
return cli