diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-04-20 10:41:47 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-05-31 11:16:09 -0300 |
commit | 875238142b573e1bcb27dc15ddd4338084b187ba (patch) | |
tree | 6b664abf1643b5c4d48e938a0bb3142173f9d614 | |
parent | adf40aba69130f0fb2630cfa3da70399823d8399 (diff) | |
download | luarocks-875238142b573e1bcb27dc15ddd4338084b187ba.tar.gz luarocks-875238142b573e1bcb27dc15ddd4338084b187ba.tar.bz2 luarocks-875238142b573e1bcb27dc15ddd4338084b187ba.zip |
help: minor cosmetic changes
-rw-r--r-- | src/luarocks/cmd/help.lua | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/luarocks/cmd/help.lua b/src/luarocks/cmd/help.lua index 18620b9e..9e11ad87 100644 --- a/src/luarocks/cmd/help.lua +++ b/src/luarocks/cmd/help.lua | |||
@@ -79,22 +79,25 @@ function help.command(flags, command) | |||
79 | end | 79 | end |
80 | print_section("CONFIGURATION") | 80 | print_section("CONFIGURATION") |
81 | util.printout("\tLua version: " .. cfg.lua_version) | 81 | util.printout("\tLua version: " .. cfg.lua_version) |
82 | util.printout() | ||
82 | util.printout("\tConfiguration files:") | 83 | util.printout("\tConfiguration files:") |
83 | util.printout("\t\tSystem: ".. dir.normalize(conf.system.file) .. " (" .. get_status(conf.system.ok) ..")") | 84 | util.printout("\t\tSystem: ".. dir.normalize(conf.system.file) .. " (" .. get_status(conf.system.ok) ..")") |
84 | if conf.user.file then | 85 | if conf.user.file then |
85 | util.printout("\t\tUser : ".. dir.normalize(conf.user.file) .. " (" .. get_status(conf.user.ok) ..")\n") | 86 | util.printout("\t\tUser : ".. dir.normalize(conf.user.file) .. " (" .. get_status(conf.user.ok) ..")") |
86 | else | 87 | else |
87 | util.printout("\t\tUser : disabled in this LuaRocks installation.\n") | 88 | util.printout("\t\tUser : disabled in this LuaRocks installation.") |
88 | end | 89 | end |
90 | util.printout() | ||
89 | util.printout("\tRocks trees in use: ") | 91 | util.printout("\tRocks trees in use: ") |
90 | for _, tree in ipairs(cfg.rocks_trees) do | 92 | for _, tree in ipairs(cfg.rocks_trees) do |
91 | if type(tree) == "string" then | 93 | if type(tree) == "string" then |
92 | util.printout("\t\t"..dir.normalize(tree)) | 94 | util.printout("\t\t"..dir.normalize(tree)) |
93 | else | 95 | else |
94 | local name = tree.name and " (\""..tree.name.."\")" or "" | 96 | local name = tree.name and " (\""..tree.name.."\")" or "" |
95 | util.printout("\t\t"..dir.normalize(tree.root)..name) | 97 | util.printout("\t\t"..dir.normalize(tree.root)..name) |
96 | end | 98 | end |
97 | end | 99 | end |
100 | util.printout() | ||
98 | else | 101 | else |
99 | command = command:gsub("-", "_") | 102 | command = command:gsub("-", "_") |
100 | local cmd = commands[command] and require(commands[command]) | 103 | local cmd = commands[command] and require(commands[command]) |