summaryrefslogtreecommitdiff
path: root/xmake/core/base/cli.lua
diff options
context:
space:
mode:
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