From f82f796ef6838336d87e5f544b4fd82fd3117194 Mon Sep 17 00:00:00 2001 From: Paul Ouellette Date: Thu, 1 Aug 2019 23:51:53 -0400 Subject: Add some missing descriptions --- src/luarocks/admin/cmd/make_manifest.lua | 2 +- src/luarocks/cmd.lua | 5 +++-- src/luarocks/cmd/doc.lua | 2 +- 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) cmd:flag("--local-tree", "If given, do not write versioned versions of the manifest file.\n".. "Use this when rebuilding the manifest of a local rocks tree.") - cmd:option("--deps-mode"):hidden(true) -- TODO: Description? + util.deps_mode_option(cmd) end --- 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: :argname("") parser:option("--only-sources", "Restrict downloads to paths matching the given URL.") :argname("") - parser:option("--namespace"):hidden(true) -- TODO: Description + parser:option("--namespace"):description("Specify the rocks server namespace to use.") parser:option("--lua-dir", "Which Lua installation to use.") :argname("") parser:option("--lua-version", "Which Lua version to use.") :argname("") parser:option("--tree", "Which tree to operate on.") - parser:option("--project-tree"):hidden(true) -- TODO: Description? + parser:option("--project-tree"):description("") -- TODO + :argname("") parser:flag("--local", "Use the tree in the user's home directory.\n".. "To enable it, see '"..program.." help path'.") 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) cmd:flag("--home", "Open the home page of project.") cmd:flag("--list", "List documentation files only.") - cmd:flag("--porcelain"):hidden(true) -- TODO: Description? + cmd:flag("--porcelain"):description("Produce machine-friendly output.") end 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) "You need the signer’s public key in your local keyring for this ".. "option to work properly.") util.deps_mode_option(cmd) + -- luarocks build options + parser:flag("--pack-binary-rock"):hidden(true) + parser:flag("--branch"):hidden(true) + parser:flag("--sign"):hidden(true) end install.opts = util.opts_table("install.opts", { -- cgit v1.2.3-55-g6feb