diff options
author | Paul Ouellette <oue.paul18@gmail.com> | 2019-08-01 23:51:53 -0400 |
---|---|---|
committer | Paul Ouellette <oue.paul18@gmail.com> | 2019-08-01 23:53:03 -0400 |
commit | f82f796ef6838336d87e5f544b4fd82fd3117194 (patch) | |
tree | 83e393242014dbc8daae8e27db4db94b14bd4c79 | |
parent | 0ef0c7086e26a1e656e8409e2c0a041d3584f9c5 (diff) | |
download | luarocks-f82f796ef6838336d87e5f544b4fd82fd3117194.tar.gz luarocks-f82f796ef6838336d87e5f544b4fd82fd3117194.tar.bz2 luarocks-f82f796ef6838336d87e5f544b4fd82fd3117194.zip |
Add some missing descriptions
-rw-r--r-- | src/luarocks/admin/cmd/make_manifest.lua | 2 | ||||
-rw-r--r-- | src/luarocks/cmd.lua | 5 | ||||
-rw-r--r-- | src/luarocks/cmd/doc.lua | 2 | ||||
-rw-r--r-- | src/luarocks/cmd/install.lua | 4 |
4 files changed, 9 insertions, 4 deletions
diff --git a/src/luarocks/admin/cmd/make_manifest.lua b/src/luarocks/admin/cmd/make_manifest.lua index 8eb673f5..0233682d 100644 --- a/src/luarocks/admin/cmd/make_manifest.lua +++ b/src/luarocks/admin/cmd/make_manifest.lua | |||
@@ -20,7 +20,7 @@ function make_manifest.add_to_parser(parser) | |||
20 | 20 | ||
21 | cmd:flag("--local-tree", "If given, do not write versioned versions of the manifest file.\n".. | 21 | cmd:flag("--local-tree", "If given, do not write versioned versions of the manifest file.\n".. |
22 | "Use this when rebuilding the manifest of a local rocks tree.") | 22 | "Use this when rebuilding the manifest of a local rocks tree.") |
23 | cmd:option("--deps-mode"):hidden(true) -- TODO: Description? | 23 | util.deps_mode_option(cmd) |
24 | end | 24 | end |
25 | 25 | ||
26 | --- Driver function for "make_manifest" command. | 26 | --- Driver function for "make_manifest" command. |
diff --git a/src/luarocks/cmd.lua b/src/luarocks/cmd.lua index 0d249421..26780eed 100644 --- a/src/luarocks/cmd.lua +++ b/src/luarocks/cmd.lua | |||
@@ -395,13 +395,14 @@ Enabling completion for Fish: | |||
395 | :argname("<server>") | 395 | :argname("<server>") |
396 | parser:option("--only-sources", "Restrict downloads to paths matching the given URL.") | 396 | parser:option("--only-sources", "Restrict downloads to paths matching the given URL.") |
397 | :argname("<url>") | 397 | :argname("<url>") |
398 | parser:option("--namespace"):hidden(true) -- TODO: Description | 398 | parser:option("--namespace"):description("Specify the rocks server namespace to use.") |
399 | parser:option("--lua-dir", "Which Lua installation to use.") | 399 | parser:option("--lua-dir", "Which Lua installation to use.") |
400 | :argname("<prefix>") | 400 | :argname("<prefix>") |
401 | parser:option("--lua-version", "Which Lua version to use.") | 401 | parser:option("--lua-version", "Which Lua version to use.") |
402 | :argname("<ver>") | 402 | :argname("<ver>") |
403 | parser:option("--tree", "Which tree to operate on.") | 403 | parser:option("--tree", "Which tree to operate on.") |
404 | parser:option("--project-tree"):hidden(true) -- TODO: Description? | 404 | parser:option("--project-tree"):description("") -- TODO |
405 | :argname("<tree>") | ||
405 | parser:flag("--local", "Use the tree in the user's home directory.\n".. | 406 | parser:flag("--local", "Use the tree in the user's home directory.\n".. |
406 | "To enable it, see '"..program.." help path'.") | 407 | "To enable it, see '"..program.." help path'.") |
407 | parser:flag("--global", "Use the system tree when `local_by_default` is `true`.") | 408 | parser:flag("--global", "Use the system tree when `local_by_default` is `true`.") |
diff --git a/src/luarocks/cmd/doc.lua b/src/luarocks/cmd/doc.lua index a732795d..3f6b6995 100644 --- a/src/luarocks/cmd/doc.lua +++ b/src/luarocks/cmd/doc.lua | |||
@@ -27,7 +27,7 @@ function doc.add_to_parser(parser) | |||
27 | 27 | ||
28 | cmd:flag("--home", "Open the home page of project.") | 28 | cmd:flag("--home", "Open the home page of project.") |
29 | cmd:flag("--list", "List documentation files only.") | 29 | cmd:flag("--list", "List documentation files only.") |
30 | cmd:flag("--porcelain"):hidden(true) -- TODO: Description? | 30 | cmd:flag("--porcelain"):description("Produce machine-friendly output.") |
31 | end | 31 | end |
32 | 32 | ||
33 | local function show_homepage(homepage, name, version) | 33 | local function show_homepage(homepage, name, version) |
diff --git a/src/luarocks/cmd/install.lua b/src/luarocks/cmd/install.lua index 6b308e0f..f2874cb1 100644 --- a/src/luarocks/cmd/install.lua +++ b/src/luarocks/cmd/install.lua | |||
@@ -41,6 +41,10 @@ function install.add_to_parser(parser) | |||
41 | "You need the signer’s public key in your local keyring for this ".. | 41 | "You need the signer’s public key in your local keyring for this ".. |
42 | "option to work properly.") | 42 | "option to work properly.") |
43 | util.deps_mode_option(cmd) | 43 | util.deps_mode_option(cmd) |
44 | -- luarocks build options | ||
45 | parser:flag("--pack-binary-rock"):hidden(true) | ||
46 | parser:flag("--branch"):hidden(true) | ||
47 | parser:flag("--sign"):hidden(true) | ||
44 | end | 48 | end |
45 | 49 | ||
46 | install.opts = util.opts_table("install.opts", { | 50 | install.opts = util.opts_table("install.opts", { |