diff options
| author | Paul Ouellette <oue.paul18@gmail.com> | 2019-06-19 21:28:10 -0400 |
|---|---|---|
| committer | Paul Ouellette <oue.paul18@gmail.com> | 2019-08-01 23:53:03 -0400 |
| commit | 6fc92e343d6ea1db91bcb6c8e471b2442a8b5f43 (patch) | |
| tree | 9e84fa83ede6cec78cd3b2c7427022cff12196ff | |
| parent | d1d7fda791c7134af48e06f09a742b4727a6893f (diff) | |
| download | luarocks-6fc92e343d6ea1db91bcb6c8e471b2442a8b5f43.tar.gz luarocks-6fc92e343d6ea1db91bcb6c8e471b2442a8b5f43.tar.bz2 luarocks-6fc92e343d6ea1db91bcb6c8e471b2442a8b5f43.zip | |
Misc. fixes
| -rw-r--r-- | src/luarocks/admin/cmd/add.lua | 3 | ||||
| -rw-r--r-- | src/luarocks/cmd.lua | 4 | ||||
| -rw-r--r-- | src/luarocks/cmd/config.lua | 1 | ||||
| -rw-r--r-- | src/luarocks/cmd/new_version.lua | 2 |
4 files changed, 4 insertions, 6 deletions
diff --git a/src/luarocks/admin/cmd/add.lua b/src/luarocks/admin/cmd/add.lua index 0682d89b..ad16c232 100644 --- a/src/luarocks/admin/cmd/add.lua +++ b/src/luarocks/admin/cmd/add.lua | |||
| @@ -12,8 +12,7 @@ local cache = require("luarocks.admin.cache") | |||
| 12 | local index = require("luarocks.admin.index") | 12 | local index = require("luarocks.admin.index") |
| 13 | 13 | ||
| 14 | function add.add_to_parser(parser) | 14 | function add.add_to_parser(parser) |
| 15 | local cmd = parser:command("add", "Add a rock or rockspec to a rocks server.", | 15 | local cmd = parser:command("add", "Add a rock or rockspec to a rocks server.", util.see_also()) |
| 16 | util.see_also()) | ||
| 17 | :add_help("--help") | 16 | :add_help("--help") |
| 18 | 17 | ||
| 19 | cmd:argument("rock", "A local rockspec or rock file.") | 18 | cmd:argument("rock", "A local rockspec or rock file.") |
diff --git a/src/luarocks/cmd.lua b/src/luarocks/cmd.lua index ab8d22c6..d85661d8 100644 --- a/src/luarocks/cmd.lua +++ b/src/luarocks/cmd.lua | |||
| @@ -308,7 +308,7 @@ local function get_status(status) | |||
| 308 | return status and "ok" or "not found" | 308 | return status and "ok" or "not found" |
| 309 | end | 309 | end |
| 310 | 310 | ||
| 311 | local function get_config_text() | 311 | local function get_config_text(cfg) |
| 312 | local buf = "Configuration:\n Lua version: "..cfg.lua_version.."\n" | 312 | local buf = "Configuration:\n Lua version: "..cfg.lua_version.."\n" |
| 313 | if cfg.luajit_version then | 313 | if cfg.luajit_version then |
| 314 | buf = buf.." LuaJIT version: "..cfg.luajit_version.."\n" | 314 | buf = buf.." LuaJIT version: "..cfg.luajit_version.."\n" |
| @@ -343,7 +343,7 @@ Variables: | |||
| 343 | Variables from the "variables" table of the configuration file can be | 343 | Variables from the "variables" table of the configuration file can be |
| 344 | overridden with VAR=VALUE assignments. | 344 | overridden with VAR=VALUE assignments. |
| 345 | 345 | ||
| 346 | ]]..get_config_text() | 346 | ]]..get_config_text(cfg) |
| 347 | 347 | ||
| 348 | local parser = argparse( | 348 | local parser = argparse( |
| 349 | dir.base_name(program), "LuaRocks "..cfg.program_version..", the Lua package manager\n\n".. | 349 | dir.base_name(program), "LuaRocks "..cfg.program_version..", the Lua package manager\n\n".. |
diff --git a/src/luarocks/cmd/config.lua b/src/luarocks/cmd/config.lua index fa954b3c..4f688a65 100644 --- a/src/luarocks/cmd/config.lua +++ b/src/luarocks/cmd/config.lua | |||
| @@ -59,7 +59,6 @@ Query information about the LuaRocks configuration. | |||
| 59 | :args("?") | 59 | :args("?") |
| 60 | 60 | ||
| 61 | cmd:option("--scope", "The scope indicates which config file should be rewritten.\n".. | 61 | cmd:option("--scope", "The scope indicates which config file should be rewritten.\n".. |
| 62 | 'Accepted values are "system", "user" or "project".\n'.. | ||
| 63 | '* Using a wrapper created with `luarocks init`, the default is "project".\n'.. | 62 | '* Using a wrapper created with `luarocks init`, the default is "project".\n'.. |
| 64 | '* Using --local (or when `local_by_default` is `true`), the default is "user".\n'.. | 63 | '* Using --local (or when `local_by_default` is `true`), the default is "user".\n'.. |
| 65 | '* Otherwise, the default is "system".') | 64 | '* Otherwise, the default is "system".') |
diff --git a/src/luarocks/cmd/new_version.lua b/src/luarocks/cmd/new_version.lua index 7c3e9329..95d762be 100644 --- a/src/luarocks/cmd/new_version.lua +++ b/src/luarocks/cmd/new_version.lua | |||
| @@ -21,7 +21,7 @@ default server. If a rockspec is given, it uses it instead. If no argument | |||
| 21 | is given, it looks for a rockspec same way 'luarocks make' does. | 21 | is given, it looks for a rockspec same way 'luarocks make' does. |
| 22 | 22 | ||
| 23 | If the version number is not given and tag is passed using --tag, | 23 | If the version number is not given and tag is passed using --tag, |
| 24 | it is used as the version, with 'v' removed from beginnnumbering. | 24 | it is used as the version, with 'v' removed from beginning. |
| 25 | Otherwise, it only increments the revision number of the given | 25 | Otherwise, it only increments the revision number of the given |
| 26 | (or downloaded) rockspec. | 26 | (or downloaded) rockspec. |
| 27 | 27 | ||
