diff options
author | Paul Ouellette <oue.paul18@gmail.com> | 2019-08-16 01:16:57 -0400 |
---|---|---|
committer | Paul Ouellette <oue.paul18@gmail.com> | 2019-08-17 00:56:35 -0400 |
commit | cc559584eac8c0c20037085d2fed6dd8cfb93ae4 (patch) | |
tree | c2ab81e759607a7bfc9d41eba1db68ed01d1c660 | |
parent | 545805531805cd3ed267296460441f321a0e6aba (diff) | |
download | luarocks-cc559584eac8c0c20037085d2fed6dd8cfb93ae4.tar.gz luarocks-cc559584eac8c0c20037085d2fed6dd8cfb93ae4.tar.bz2 luarocks-cc559584eac8c0c20037085d2fed6dd8cfb93ae4.zip |
Set option descriptions using argument
-rw-r--r-- | src/luarocks/cmd.lua | 2 | ||||
-rw-r--r-- | src/luarocks/cmd/doc.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/luarocks/cmd.lua b/src/luarocks/cmd.lua index 4ded7e5f..0cb4135a 100644 --- a/src/luarocks/cmd.lua +++ b/src/luarocks/cmd.lua | |||
@@ -401,7 +401,7 @@ Enabling completion for Fish: | |||
401 | :argname("<server>") | 401 | :argname("<server>") |
402 | parser:option("--only-sources", "Restrict downloads to paths matching the given URL.") | 402 | parser:option("--only-sources", "Restrict downloads to paths matching the given URL.") |
403 | :argname("<url>") | 403 | :argname("<url>") |
404 | parser:option("--namespace"):description("Specify the rocks server namespace to use.") | 404 | parser:option("--namespace", "Specify the rocks server namespace to use.") |
405 | parser:option("--lua-dir", "Which Lua installation to use.") | 405 | parser:option("--lua-dir", "Which Lua installation to use.") |
406 | :argname("<prefix>") | 406 | :argname("<prefix>") |
407 | parser:option("--lua-version", "Which Lua version to use.") | 407 | parser:option("--lua-version", "Which Lua version to use.") |
diff --git a/src/luarocks/cmd/doc.lua b/src/luarocks/cmd/doc.lua index cffdebab..4b3335d8 100644 --- a/src/luarocks/cmd/doc.lua +++ b/src/luarocks/cmd/doc.lua | |||
@@ -26,7 +26,7 @@ function doc.add_to_parser(parser) | |||
26 | 26 | ||
27 | cmd:flag("--home", "Open the home page of project.") | 27 | cmd:flag("--home", "Open the home page of project.") |
28 | cmd:flag("--list", "List documentation files only.") | 28 | cmd:flag("--list", "List documentation files only.") |
29 | cmd:flag("--porcelain"):description("Produce machine-friendly output.") | 29 | cmd:flag("--porcelain", "Produce machine-friendly output.") |
30 | end | 30 | end |
31 | 31 | ||
32 | local function show_homepage(homepage, name, version) | 32 | local function show_homepage(homepage, name, version) |