aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/config_cmd.lua17
-rw-r--r--src/luarocks/doc.lua2
-rw-r--r--src/luarocks/list.lua2
-rw-r--r--src/luarocks/show.lua2
4 files changed, 19 insertions, 4 deletions
diff --git a/src/luarocks/config_cmd.lua b/src/luarocks/config_cmd.lua
index c066cfec..bf282a7a 100644
--- a/src/luarocks/config_cmd.lua
+++ b/src/luarocks/config_cmd.lua
@@ -6,6 +6,22 @@ local cfg = require("luarocks.cfg")
6local util = require("luarocks.util") 6local util = require("luarocks.util")
7local dir = require("luarocks.dir") 7local dir = require("luarocks.dir")
8 8
9config_cmd.help_summary = "Query information about the LuaRocks configuration."
10config_cmd.help_arguments = "<flag>"
11config_cmd.help = [[
12--lua-incdir Path to Lua header files.
13
14--lua-libdir Path to Lua library files.
15
16--lua-ver Lua version (in major.minor format). e.g. 5.1
17
18--system-config Location of the system config file.
19
20--user-config Location of the user config file.
21
22--rock-trees Rocks trees in use. First the user tree, then the system tree.
23]]
24
9local function config_file(conf) 25local function config_file(conf)
10 print(dir.normalize(conf.file)) 26 print(dir.normalize(conf.file))
11 if conf.ok then 27 if conf.ok then
@@ -39,7 +55,6 @@ function config_cmd.run(...)
39 if flags["user-config"] then 55 if flags["user-config"] then
40 return config_file(conf.user) 56 return config_file(conf.user)
41 end 57 end
42
43 if flags["rock-trees"] then 58 if flags["rock-trees"] then
44 for _, tree in ipairs(cfg.rocks_trees) do 59 for _, tree in ipairs(cfg.rocks_trees) do
45 if type(tree) == "string" then 60 if type(tree) == "string" then
diff --git a/src/luarocks/doc.lua b/src/luarocks/doc.lua
index 034e2a16..53ed0116 100644
--- a/src/luarocks/doc.lua
+++ b/src/luarocks/doc.lua
@@ -13,7 +13,7 @@ local fetch = require("luarocks.fetch")
13local fs = require("luarocks.fs") 13local fs = require("luarocks.fs")
14local download = require("luarocks.download") 14local download = require("luarocks.download")
15 15
16doc.help_summary = "Shows documentation for an installed rock." 16doc.help_summary = "Show documentation for an installed rock."
17 17
18doc.help = [[ 18doc.help = [[
19<argument> is an existing package name. 19<argument> is an existing package name.
diff --git a/src/luarocks/list.lua b/src/luarocks/list.lua
index 518b83ce..fddded03 100644
--- a/src/luarocks/list.lua
+++ b/src/luarocks/list.lua
@@ -11,7 +11,7 @@ local cfg = require("luarocks.cfg")
11local util = require("luarocks.util") 11local util = require("luarocks.util")
12local path = require("luarocks.path") 12local path = require("luarocks.path")
13 13
14list.help_summary = "Lists currently installed rocks." 14list.help_summary = "List currently installed rocks."
15list.help_arguments = "[--porcelain] <filter>" 15list.help_arguments = "[--porcelain] <filter>"
16list.help = [[ 16list.help = [[
17<filter> is a substring of a rock name to filter by. 17<filter> is a substring of a rock name to filter by.
diff --git a/src/luarocks/show.lua b/src/luarocks/show.lua
index 3243c0ce..08b2673f 100644
--- a/src/luarocks/show.lua
+++ b/src/luarocks/show.lua
@@ -11,7 +11,7 @@ local path = require("luarocks.path")
11local deps = require("luarocks.deps") 11local deps = require("luarocks.deps")
12local fetch = require("luarocks.fetch") 12local fetch = require("luarocks.fetch")
13local manif = require("luarocks.manif") 13local manif = require("luarocks.manif")
14show.help_summary = "Shows information about an installed rock." 14show.help_summary = "Show information about an installed rock."
15 15
16show.help = [[ 16show.help = [[
17<argument> is an existing package name. 17<argument> is an existing package name.