summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-10-28 23:32:17 +0800
committerruki <[email protected]>2020-10-28 23:32:17 +0800
commit69e7b376f0d2e1bfa0ef1ba73c576b63fbd608a9 (patch)
tree5df79886bf9f4e9bd44691cdc1cc410fc40b4325
parentd5c78860c2236b4c88c9dd9237caa0fc9181f49f (diff)
improve xrepo args
-rw-r--r--xmake/modules/private/xrepo/action/env.lua6
-rw-r--r--xmake/modules/private/xrepo/action/export.lua6
-rw-r--r--xmake/modules/private/xrepo/action/install.lua8
-rw-r--r--xmake/modules/private/xrepo/action/remove.lua6
4 files changed, 13 insertions, 13 deletions
diff --git a/xmake/modules/private/xrepo/action/env.lua b/xmake/modules/private/xrepo/action/env.lua
index 88c8ee3bc..bb794ae0f 100644
--- a/xmake/modules/private/xrepo/action/env.lua
+++ b/xmake/modules/private/xrepo/action/env.lua
@@ -38,10 +38,10 @@ function menu_options()
{'a', "arch", "kv", nil, "Set the given architecture." },
{'m', "mode", "kv", nil, "Set the given mode.",
values = {"release", "debug"} },
- {nil, "configs", "kv", nil, "Set the given extra package configs.",
+ {'f', "configs", "kv", nil, "Set the given extra package configs.",
"e.g.",
- " - xrepo env --configs=\"vs_runtime=MD\" zlib cmake ..",
- " - xrepo env --configs=\"regex=true,thread=true\" \"zlib,boost\" cmake .."},
+ " - xrepo env -f \"vs_runtime=MD\" zlib cmake ..",
+ " - xrepo env -f \"regex=true,thread=true\" \"zlib,boost\" cmake .."},
{},
{nil, "packages", "v", nil, "Set the packages to be bound" },
{nil, "program", "v", nil, "Set the program name to be run",
diff --git a/xmake/modules/private/xrepo/action/export.lua b/xmake/modules/private/xrepo/action/export.lua
index 0be2ab050..dd142d066 100644
--- a/xmake/modules/private/xrepo/action/export.lua
+++ b/xmake/modules/private/xrepo/action/export.lua
@@ -36,10 +36,10 @@ function menu_options()
{'a', "arch", "kv", nil, "Set the given architecture." },
{'m', "mode", "kv", nil, "Set the given mode.",
values = {"release", "debug"} },
- {nil, "configs", "kv", nil, "Set the given extra package configs.",
+ {'f', "configs", "kv", nil, "Set the given extra package configs.",
"e.g.",
- " - xrepo export --configs=\"vs_runtime=MD\" zlib",
- " - xrepo export --configs=\"regex=true,thread=true\" boost"},
+ " - xrepo export -f \"vs_runtime=MD\" zlib",
+ " - xrepo export -f \"regex=true,thread=true\" boost"},
{},
{'o', "outputdir", "kv", "packages","Set the exported packages directory."},
{nil, "packages", "vs", nil, "The packages list.",
diff --git a/xmake/modules/private/xrepo/action/install.lua b/xmake/modules/private/xrepo/action/install.lua
index 1165b8161..2eed7695d 100644
--- a/xmake/modules/private/xrepo/action/install.lua
+++ b/xmake/modules/private/xrepo/action/install.lua
@@ -36,17 +36,17 @@ function menu_options()
{'a', "arch", "kv", nil, "Set the given architecture." },
{'m', "mode", "kv", nil, "Set the given mode.",
values = {"release", "debug"} },
- {nil, "configs", "kv", nil, "Set the given extra package configs.",
+ {'f', "configs", "kv", nil, "Set the given extra package configs.",
"e.g.",
- " - xrepo install --configs=\"vs_runtime=MD\" zlib",
- " - xrepo install --configs=\"regex=true,thread=true\" boost"},
+ " - xrepo install -f \"vs_runtime=MD\" zlib",
+ " - xrepo install -f \"regex=true,thread=true\" boost"},
{},
{nil, "ndk", "kv", nil, "Set the android NDK directory." },
{nil, "sdk", "kv", nil, "Set the SDK directory of cross toolchain." },
{nil, "toolchain", "kv", nil, "Set the toolchain name." },
{nil, "mingw", "kv", nil, "Set the MingW SDK directory." },
{},
- {'f', "force", "k", nil, "Force to reinstall all package dependencies."},
+ {nil, "force", "k", nil, "Force to reinstall all package dependencies."},
{nil, "shallow", "k", nil, "Does not install dependent packages."},
{},
{nil, "packages", "vs", nil, "The packages list.",
diff --git a/xmake/modules/private/xrepo/action/remove.lua b/xmake/modules/private/xrepo/action/remove.lua
index 913748918..cb525c148 100644
--- a/xmake/modules/private/xrepo/action/remove.lua
+++ b/xmake/modules/private/xrepo/action/remove.lua
@@ -36,10 +36,10 @@ function menu_options()
{'a', "arch", "kv", nil, "Set the given architecture." },
{'m', "mode", "kv", nil, "Set the given mode.",
values = {"release", "debug"} },
- {nil, "configs", "kv", nil, "Set the given extra package configs.",
+ {'f', "configs", "kv", nil, "Set the given extra package configs.",
"e.g.",
- " - xrepo remove --configs=\"vs_runtime=MD\" zlib",
- " - xrepo remove --configs=\"regex=true,thread=true\" boost"},
+ " - xrepo remove -f \"vs_runtime=MD\" zlib",
+ " - xrepo remove -f \"regex=true,thread=true\" boost"},
{},
{nil, "packages", "vs", nil, "The packages list.",
"e.g.",