aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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