aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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>\"",