summaryrefslogtreecommitdiff
path: root/xmake/actions/global/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-06-23 22:52:21 +0800
committerruki <[email protected]>2020-06-23 11:14:09 +0800
commit873b532f381d4dddabe5370dcffef49816f9f808 (patch)
tree48c1296414ba9eb0b3ec9e74bbd54d471c841910 /xmake/actions/global/xmake.lua
parent1b43e9cd4f5a38025478ade0de3f044d7b1e9ee7 (diff)
add global proxy settings
Diffstat (limited to 'xmake/actions/global/xmake.lua')
-rw-r--r--xmake/actions/global/xmake.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/actions/global/xmake.lua b/xmake/actions/global/xmake.lua
index 89293e75e..720b51066 100644
--- a/xmake/actions/global/xmake.lua
+++ b/xmake/actions/global/xmake.lua
@@ -49,6 +49,11 @@ task("global")
return import("core.theme.theme.names")()
end}
, {nil, "debugger", "kv", "auto" , "The debugger program path." }
+ , {'x', "proxy", "kv", nil , "Use proxy on given port. [PROTOCOL://]HOST[:PORT]"
+ , " e.g."
+ , " - xmake g --proxy='http://host:port'"
+ , " - xmake g --proxy='https://host:port'"
+ , " - xmake g --proxy='socks5://host:port'" }
-- package configuration
, {category = "Package Configuration"}