From 876d9c892274aa2a0caa47c5db465517388249a7 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Mon, 23 Mar 2015 23:56:47 -0300 Subject: Fix inconsistency in --homepage flag in `luarocks doc` and `luarocks write_rockspec`. `luarocks doc` now uses --home. --- src/luarocks/doc.lua | 4 ++-- src/luarocks/util.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 using a series of heuristics. With these flags, return only the desired information: ---homepage Open the home page of project. +--home Open the home page of project. --list List documentation files only. For more information about a rock, see the 'show' command. @@ -75,7 +75,7 @@ function doc.run(...) if not rockspec then return nil,err end local descript = rockspec.description or {} - if flags["homepage"] then + if flags["home"] then return show_homepage(descript.homepage, name, version) end 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 = { ["from"] = "", ["help"] = true, ["home"] = true, - ["homepage"] = true, + ["homepage"] = "", ["keep"] = true, ["lib"] = "", ["license"] = "\"\"", -- cgit v1.2.3-55-g6feb