diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2014-01-16 09:53:25 -0800 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2014-01-16 09:53:25 -0800 |
commit | bd471f78761aad2d548edf4f0a14bdbd20bb710e (patch) | |
tree | 149ab4fc6d14ab560fd6e89b9e8140e53179be5a | |
parent | a69f6dca25a34b0dc287e757c0a1df5fda9fa2f2 (diff) | |
parent | cb053191eca0191b330ff5ce1b99da9b04dba30a (diff) | |
download | luarocks-bd471f78761aad2d548edf4f0a14bdbd20bb710e.tar.gz luarocks-bd471f78761aad2d548edf4f0a14bdbd20bb710e.tar.bz2 luarocks-bd471f78761aad2d548edf4f0a14bdbd20bb710e.zip |
Merge pull request #223 from ignacio/patch-2
show --modules will output one module per line
-rw-r--r-- | src/luarocks/show.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/luarocks/show.lua b/src/luarocks/show.lua index 2e039dd4..49e235d9 100644 --- a/src/luarocks/show.lua +++ b/src/luarocks/show.lua | |||
@@ -1,4 +1,3 @@ | |||
1 | |||
2 | --- Module implementing the LuaRocks "show" command. | 1 | --- Module implementing the LuaRocks "show" command. |
3 | -- Shows information about an installed rock. | 2 | -- Shows information about an installed rock. |
4 | module("luarocks.show", package.seeall) | 3 | module("luarocks.show", package.seeall) |
@@ -128,7 +127,7 @@ function run(...) | |||
128 | if flags["rock-tree"] then util.printout(path.rocks_tree_to_string(repo)) | 127 | if flags["rock-tree"] then util.printout(path.rocks_tree_to_string(repo)) |
129 | elseif flags["rock-dir"] then util.printout(directory) | 128 | elseif flags["rock-dir"] then util.printout(directory) |
130 | elseif flags["home"] then util.printout(descript.homepage) | 129 | elseif flags["home"] then util.printout(descript.homepage) |
131 | elseif flags["modules"] then util.printout(keys_as_string(minfo.modules)) | 130 | elseif flags["modules"] then util.printout(keys_as_string(minfo.modules, "\n")) |
132 | elseif flags["deps"] then util.printout(keys_as_string(minfo.dependencies)) | 131 | elseif flags["deps"] then util.printout(keys_as_string(minfo.dependencies)) |
133 | elseif flags["rockspec"] then util.printout(rockspec_file) | 132 | elseif flags["rockspec"] then util.printout(rockspec_file) |
134 | elseif flags["mversion"] then util.printout(version) | 133 | elseif flags["mversion"] then util.printout(version) |