From f10113ff32a1ab9fff5abe68e84ccc5bad9a4908 Mon Sep 17 00:00:00 2001 From: Ignacio BurgueƱo Date: Fri, 26 Jun 2015 11:59:10 -0300 Subject: Adds help to 'luarocks config' command --- src/luarocks/config_cmd.lua | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/luarocks/config_cmd.lua b/src/luarocks/config_cmd.lua index c066cfec..f3b54494 100644 --- a/src/luarocks/config_cmd.lua +++ b/src/luarocks/config_cmd.lua @@ -6,6 +6,22 @@ local cfg = require("luarocks.cfg") local util = require("luarocks.util") local dir = require("luarocks.dir") +config_cmd.help_summary = "Queries information about the LuaRocks configuration." +config_cmd.help_arguments = "" +config_cmd.help = [[ +--lua-incdir Path to Lua header files. + +--lua-libdir Path to Lua library files. + +--lua-ver Lua version (in major.minor format). e.g. 5.1 + +--system-config Location of the system config file. + +--user-config Location of the user config file. + +--rock-trees Rocks trees in use. First the user tree, then the system tree. +]] + local function config_file(conf) print(dir.normalize(conf.file)) if conf.ok then @@ -39,7 +55,6 @@ function config_cmd.run(...) if flags["user-config"] then return config_file(conf.user) end - if flags["rock-trees"] then for _, tree in ipairs(cfg.rocks_trees) do if type(tree) == "string" then -- cgit v1.2.3-55-g6feb