aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2014-01-09 22:06:38 -0200
committerHisham Muhammad <hisham@gobolinux.org>2014-01-10 16:42:33 -0200
commit04d071bd0ee90cbd82c3d1048254140e2363ce0a (patch)
tree147dc56b647c10b32cb546bef158e8d74b9c2b38
parent0402bceb92a5eb6a4650856b080953826229309d (diff)
downloadluarocks-04d071bd0ee90cbd82c3d1048254140e2363ce0a.tar.gz
luarocks-04d071bd0ee90cbd82c3d1048254140e2363ce0a.tar.bz2
luarocks-04d071bd0ee90cbd82c3d1048254140e2363ce0a.zip
Use --homepage, which is less ambiguous.
-rw-r--r--src/luarocks/doc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/luarocks/doc.lua b/src/luarocks/doc.lua
index a3badd54..1a843f37 100644
--- a/src/luarocks/doc.lua
+++ b/src/luarocks/doc.lua
@@ -18,7 +18,7 @@ Without any flags, tries to load the documentation
18using a series of heuristics. 18using a series of heuristics.
19With these flags, return only the desired information: 19With these flags, return only the desired information:
20 20
21--home Open the home page of project. 21--homepage Open the home page of project.
22--list List documentation files only. 22--list List documentation files only.
23 23
24For more information about a rock, see the 'show' command. 24For more information about a rock, see the 'show' command.
@@ -44,7 +44,7 @@ function run(...)
44 if not rockspec then return nil,err end 44 if not rockspec then return nil,err end
45 local descript = rockspec.description or {} 45 local descript = rockspec.description or {}
46 46
47 if flags["home"] then 47 if flags["homepage"] then
48 if not descript.homepage then 48 if not descript.homepage then
49 return nil, "No 'homepage' field in rockspec for "..name.." "..version 49 return nil, "No 'homepage' field in rockspec for "..name.." "..version
50 end 50 end