aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-03-23 23:56:47 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-03-23 23:56:47 -0300
commit876d9c892274aa2a0caa47c5db465517388249a7 (patch)
treeb580ce620b8a38d2afaa743839f2e75adee84d5d /src
parent294e08fa074d47063e3a83bc9f62587d39ce1d44 (diff)
downloadluarocks-876d9c892274aa2a0caa47c5db465517388249a7.tar.gz
luarocks-876d9c892274aa2a0caa47c5db465517388249a7.tar.bz2
luarocks-876d9c892274aa2a0caa47c5db465517388249a7.zip
Fix inconsistency in --homepage flag in `luarocks doc` and `luarocks write_rockspec`.
`luarocks doc` now uses --home.
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/doc.lua4
-rw-r--r--src/luarocks/util.lua2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/luarocks/doc.lua b/src/luarocks/doc.lua
index 6dee1069..034e2a16 100644
--- a/src/luarocks/doc.lua
+++ b/src/luarocks/doc.lua
@@ -21,7 +21,7 @@ Without any flags, tries to load the documentation
21using a series of heuristics. 21using a series of heuristics.
22With these flags, return only the desired information: 22With these flags, return only the desired information:
23 23
24--homepage Open the home page of project. 24--home Open the home page of project.
25--list List documentation files only. 25--list List documentation files only.
26 26
27For more information about a rock, see the 'show' command. 27For more information about a rock, see the 'show' command.
@@ -75,7 +75,7 @@ function doc.run(...)
75 if not rockspec then return nil,err end 75 if not rockspec then return nil,err end
76 local descript = rockspec.description or {} 76 local descript = rockspec.description or {}
77 77
78 if flags["homepage"] then 78 if flags["home"] then
79 return show_homepage(descript.homepage, name, version) 79 return show_homepage(descript.homepage, name, version)
80 end 80 end
81 81
diff --git a/src/luarocks/util.lua b/src/luarocks/util.lua
index 24b5faad..2d57f9dc 100644
--- a/src/luarocks/util.lua
+++ b/src/luarocks/util.lua
@@ -80,7 +80,7 @@ local supported_flags = {
80 ["from"] = "<server>", 80 ["from"] = "<server>",
81 ["help"] = true, 81 ["help"] = true,
82 ["home"] = true, 82 ["home"] = true,
83 ["homepage"] = true, 83 ["homepage"] = "<url>",
84 ["keep"] = true, 84 ["keep"] = true,
85 ["lib"] = "<library>", 85 ["lib"] = "<library>",
86 ["license"] = "\"<text>\"", 86 ["license"] = "\"<text>\"",