aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Ouellette <oue.paul18@gmail.com>2019-08-16 01:01:55 -0400
committerPaul Ouellette <oue.paul18@gmail.com>2019-08-17 00:55:35 -0400
commit545805531805cd3ed267296460441f321a0e6aba (patch)
tree300cacc380806bd99a4b443f001dec89137539aa
parentbe10b503b29b3be5ced9607465fb309b1334026c (diff)
downloadluarocks-545805531805cd3ed267296460441f321a0e6aba.tar.gz
luarocks-545805531805cd3ed267296460441f321a0e6aba.tar.bz2
luarocks-545805531805cd3ed267296460441f321a0e6aba.zip
Use default -h flag
-rw-r--r--src/luarocks/admin/cmd/add.lua1
-rw-r--r--src/luarocks/admin/cmd/make_manifest.lua1
-rw-r--r--src/luarocks/admin/cmd/refresh_cache.lua1
-rw-r--r--src/luarocks/admin/cmd/remove.lua1
-rw-r--r--src/luarocks/cmd.lua1
-rw-r--r--src/luarocks/cmd/build.lua1
-rw-r--r--src/luarocks/cmd/config.lua1
-rw-r--r--src/luarocks/cmd/doc.lua1
-rw-r--r--src/luarocks/cmd/download.lua1
-rw-r--r--src/luarocks/cmd/init.lua1
-rw-r--r--src/luarocks/cmd/install.lua1
-rw-r--r--src/luarocks/cmd/lint.lua1
-rw-r--r--src/luarocks/cmd/list.lua1
-rw-r--r--src/luarocks/cmd/make.lua1
-rw-r--r--src/luarocks/cmd/new_version.lua1
-rw-r--r--src/luarocks/cmd/pack.lua1
-rw-r--r--src/luarocks/cmd/path.lua1
-rw-r--r--src/luarocks/cmd/purge.lua1
-rw-r--r--src/luarocks/cmd/remove.lua1
-rw-r--r--src/luarocks/cmd/search.lua1
-rw-r--r--src/luarocks/cmd/show.lua1
-rw-r--r--src/luarocks/cmd/test.lua1
-rw-r--r--src/luarocks/cmd/unpack.lua1
-rw-r--r--src/luarocks/cmd/upload.lua1
-rw-r--r--src/luarocks/cmd/which.lua1
-rw-r--r--src/luarocks/cmd/write_rockspec.lua1
26 files changed, 0 insertions, 26 deletions
diff --git a/src/luarocks/admin/cmd/add.lua b/src/luarocks/admin/cmd/add.lua
index 10e6bf09..5011c680 100644
--- a/src/luarocks/admin/cmd/add.lua
+++ b/src/luarocks/admin/cmd/add.lua
@@ -13,7 +13,6 @@ local index = require("luarocks.admin.index")
13 13
14function add.add_to_parser(parser) 14function add.add_to_parser(parser)
15 local cmd = parser:command("add", "Add a rock or rockspec to a rocks server.", util.see_also()) 15 local cmd = parser:command("add", "Add a rock or rockspec to a rocks server.", util.see_also())
16 :add_help("--help")
17 16
18 cmd:argument("rock", "A local rockspec or rock file.") 17 cmd:argument("rock", "A local rockspec or rock file.")
19 :args("+") 18 :args("+")
diff --git a/src/luarocks/admin/cmd/make_manifest.lua b/src/luarocks/admin/cmd/make_manifest.lua
index 0233682d..b4f2ca5b 100644
--- a/src/luarocks/admin/cmd/make_manifest.lua
+++ b/src/luarocks/admin/cmd/make_manifest.lua
@@ -13,7 +13,6 @@ local dir = require("luarocks.dir")
13 13
14function make_manifest.add_to_parser(parser) 14function make_manifest.add_to_parser(parser)
15 local cmd = parser:command("make_manifest", "Compile a manifest file for a repository.", util.see_also()) 15 local cmd = parser:command("make_manifest", "Compile a manifest file for a repository.", util.see_also())
16 :add_help("--help")
17 16
18 cmd:argument("repository", "Local repository pathname.") 17 cmd:argument("repository", "Local repository pathname.")
19 :args("?") 18 :args("?")
diff --git a/src/luarocks/admin/cmd/refresh_cache.lua b/src/luarocks/admin/cmd/refresh_cache.lua
index 042a07a7..81959953 100644
--- a/src/luarocks/admin/cmd/refresh_cache.lua
+++ b/src/luarocks/admin/cmd/refresh_cache.lua
@@ -8,7 +8,6 @@ local cache = require("luarocks.admin.cache")
8 8
9function refresh_cache.add_to_parser(parser) 9function refresh_cache.add_to_parser(parser)
10 local cmd = parser:command("refresh_cache", "Refresh local cache of a remote rocks server.", util.see_also()) 10 local cmd = parser:command("refresh_cache", "Refresh local cache of a remote rocks server.", util.see_also())
11 :add_help("--help")
12 11
13 cmd:option("--from", "The server to use. If not given, the default server ".. 12 cmd:option("--from", "The server to use. If not given, the default server "..
14 "set in the upload_server variable from the configuration file is used instead.") 13 "set in the upload_server variable from the configuration file is used instead.")
diff --git a/src/luarocks/admin/cmd/remove.lua b/src/luarocks/admin/cmd/remove.lua
index 74432ce9..de58f7a3 100644
--- a/src/luarocks/admin/cmd/remove.lua
+++ b/src/luarocks/admin/cmd/remove.lua
@@ -13,7 +13,6 @@ local index = require("luarocks.admin.index")
13 13
14function admin_remove.add_to_parser(parser) 14function admin_remove.add_to_parser(parser)
15 local cmd = parser:command("remove", "Remove a rock or rockspec from a rocks server.", util.see_also()) 15 local cmd = parser:command("remove", "Remove a rock or rockspec from a rocks server.", util.see_also())
16 :add_help("--help")
17 16
18 cmd:argument("rock", "A local rockspec or rock file.") 17 cmd:argument("rock", "A local rockspec or rock file.")
19 :args("+") 18 :args("+")
diff --git a/src/luarocks/cmd.lua b/src/luarocks/cmd.lua
index df52c92e..4ded7e5f 100644
--- a/src/luarocks/cmd.lua
+++ b/src/luarocks/cmd.lua
@@ -350,7 +350,6 @@ Variables:
350 basename, "LuaRocks "..cfg.program_version..", the Lua package manager\n\n".. 350 basename, "LuaRocks "..cfg.program_version..", the Lua package manager\n\n"..
351 program.." - "..description, epilog) 351 program.." - "..description, epilog)
352 :help_max_width(80) 352 :help_max_width(80)
353 :add_help("--help")
354 :add_help_command() 353 :add_help_command()
355 :add_complete_command({ 354 :add_complete_command({
356 help_max_width = 120, 355 help_max_width = 120,
diff --git a/src/luarocks/cmd/build.lua b/src/luarocks/cmd/build.lua
index 428ede2a..0654b4eb 100644
--- a/src/luarocks/cmd/build.lua
+++ b/src/luarocks/cmd/build.lua
@@ -22,7 +22,6 @@ function cmd_build.add_to_parser(parser)
22 local cmd = parser:command("build", "Build and install a rock, compiling its C parts if any.\n".. 22 local cmd = parser:command("build", "Build and install a rock, compiling its C parts if any.\n"..
23 "If no arguments are given, behaves as luarocks make.", util.see_also()) 23 "If no arguments are given, behaves as luarocks make.", util.see_also())
24 :summary("Build/compile a rock.") 24 :summary("Build/compile a rock.")
25 :add_help("--help")
26 25
27 cmd:argument("rock", "A rockspec file, a source rock file, or the name of ".. 26 cmd:argument("rock", "A rockspec file, a source rock file, or the name of "..
28 "a rock to be fetched from a repository.") 27 "a rock to be fetched from a repository.")
diff --git a/src/luarocks/cmd/config.lua b/src/luarocks/cmd/config.lua
index 0af9e247..59dafdb5 100644
--- a/src/luarocks/cmd/config.lua
+++ b/src/luarocks/cmd/config.lua
@@ -50,7 +50,6 @@ Query information about the LuaRocks configuration.
50 for detailed information on the LuaRocks config file format. 50 for detailed information on the LuaRocks config file format.
51]])) 51]]))
52 :summary("Query information about the LuaRocks configuration.") 52 :summary("Query information about the LuaRocks configuration.")
53 :add_help("--help")
54 53
55 cmd:argument("key", "The configuration key.") 54 cmd:argument("key", "The configuration key.")
56 :args("?") 55 :args("?")
diff --git a/src/luarocks/cmd/doc.lua b/src/luarocks/cmd/doc.lua
index 3f6b6995..cffdebab 100644
--- a/src/luarocks/cmd/doc.lua
+++ b/src/luarocks/cmd/doc.lua
@@ -19,7 +19,6 @@ function doc.add_to_parser(parser)
19 For more information about a rock, see the 'show' command. 19 For more information about a rock, see the 'show' command.
20]])) 20]]))
21 :summary("Show documentation for an installed rock.") 21 :summary("Show documentation for an installed rock.")
22 :add_help("--help")
23 22
24 cmd:argument("rock", "Name of the rock.") 23 cmd:argument("rock", "Name of the rock.")
25 cmd:argument("version", "Version of the rock.") 24 cmd:argument("version", "Version of the rock.")
diff --git a/src/luarocks/cmd/download.lua b/src/luarocks/cmd/download.lua
index 7f12a35f..5032d580 100644
--- a/src/luarocks/cmd/download.lua
+++ b/src/luarocks/cmd/download.lua
@@ -8,7 +8,6 @@ local download = require("luarocks.download")
8 8
9function cmd_download.add_to_parser(parser) 9function cmd_download.add_to_parser(parser)
10 local cmd = parser:command("download", "Download a specific rock file from a rocks server.", util.see_also()) 10 local cmd = parser:command("download", "Download a specific rock file from a rocks server.", util.see_also())
11 :add_help("--help")
12 11
13 cmd:argument("name", "Name of the rock.") 12 cmd:argument("name", "Name of the rock.")
14 :args("?") 13 :args("?")
diff --git a/src/luarocks/cmd/init.lua b/src/luarocks/cmd/init.lua
index fe74751b..5f269e22 100644
--- a/src/luarocks/cmd/init.lua
+++ b/src/luarocks/cmd/init.lua
@@ -12,7 +12,6 @@ local write_rockspec = require("luarocks.cmd.write_rockspec")
12 12
13function init.add_to_parser(parser) 13function init.add_to_parser(parser)
14 local cmd = parser:command("init", "Initialize a directory for a Lua project using LuaRocks.", util.see_also()) 14 local cmd = parser:command("init", "Initialize a directory for a Lua project using LuaRocks.", util.see_also())
15 :add_help("--help")
16 15
17 cmd:argument("name", "The project name.") 16 cmd:argument("name", "The project name.")
18 :args("?") 17 :args("?")
diff --git a/src/luarocks/cmd/install.lua b/src/luarocks/cmd/install.lua
index f2874cb1..4020918e 100644
--- a/src/luarocks/cmd/install.lua
+++ b/src/luarocks/cmd/install.lua
@@ -18,7 +18,6 @@ local dir = require("luarocks.dir")
18 18
19function install.add_to_parser(parser) 19function install.add_to_parser(parser)
20 local cmd = parser:command("install", "Install a rock.", util.see_also()) 20 local cmd = parser:command("install", "Install a rock.", util.see_also())
21 :add_help("--help")
22 21
23 cmd:argument("rock", "The name of a rock to be fetched from a repository ".. 22 cmd:argument("rock", "The name of a rock to be fetched from a repository "..
24 "or a filename of a locally available rock.") 23 "or a filename of a locally available rock.")
diff --git a/src/luarocks/cmd/lint.lua b/src/luarocks/cmd/lint.lua
index 2af19392..20c842ff 100644
--- a/src/luarocks/cmd/lint.lua
+++ b/src/luarocks/cmd/lint.lua
@@ -12,7 +12,6 @@ function lint.add_to_parser(parser)
12 "Returns success if the text of the rockspec is syntactically correct, else failure.", 12 "Returns success if the text of the rockspec is syntactically correct, else failure.",
13 util.see_also()) 13 util.see_also())
14 :summary("Check syntax of a rockspec.") 14 :summary("Check syntax of a rockspec.")
15 :add_help("--help")
16 15
17 cmd:argument("rockspec", "The rockspec to check.") 16 cmd:argument("rockspec", "The rockspec to check.")
18end 17end
diff --git a/src/luarocks/cmd/list.lua b/src/luarocks/cmd/list.lua
index 3e275a0d..cac5cd8a 100644
--- a/src/luarocks/cmd/list.lua
+++ b/src/luarocks/cmd/list.lua
@@ -12,7 +12,6 @@ local path = require("luarocks.path")
12 12
13function list.add_to_parser(parser) 13function list.add_to_parser(parser)
14 local cmd = parser:command("list", "List currently installed rocks.", util.see_also()) 14 local cmd = parser:command("list", "List currently installed rocks.", util.see_also())
15 :add_help("--help")
16 15
17 cmd:argument("filter", "A substring of a rock name to filter by.") 16 cmd:argument("filter", "A substring of a rock name to filter by.")
18 :args("?") 17 :args("?")
diff --git a/src/luarocks/cmd/make.lua b/src/luarocks/cmd/make.lua
index bc7c2c60..e04bba96 100644
--- a/src/luarocks/cmd/make.lua
+++ b/src/luarocks/cmd/make.lua
@@ -60,7 +60,6 @@ NB: Use `luarocks install` with the `--only-deps` flag if you want to install
60only dependencies of the rockspec (see `luarocks help install`). 60only dependencies of the rockspec (see `luarocks help install`).
61]], util.see_also()) 61]], util.see_also())
62 :summary("Compile package in current directory using a rockspec.") 62 :summary("Compile package in current directory using a rockspec.")
63 :add_help("--help")
64 63
65 cmd:argument("rockspec", "Rockspec for the rock to build.") 64 cmd:argument("rockspec", "Rockspec for the rock to build.")
66 :args("?") 65 :args("?")
diff --git a/src/luarocks/cmd/new_version.lua b/src/luarocks/cmd/new_version.lua
index b6951059..71d763f8 100644
--- a/src/luarocks/cmd/new_version.lua
+++ b/src/luarocks/cmd/new_version.lua
@@ -39,7 +39,6 @@ If a directory is not given, it defaults to the current directory.
39WARNING: it writes the new rockspec to the given directory, 39WARNING: it writes the new rockspec to the given directory,
40overwriting the file if it already exists.]], util.see_also()) 40overwriting the file if it already exists.]], util.see_also())
41 :summary("Auto-write a rockspec for a new version of a rock.") 41 :summary("Auto-write a rockspec for a new version of a rock.")
42 :add_help("--help")
43 42
44 cmd:argument("rock", "Package name or rockspec.") 43 cmd:argument("rock", "Package name or rockspec.")
45 :args("?") 44 :args("?")
diff --git a/src/luarocks/cmd/pack.lua b/src/luarocks/cmd/pack.lua
index 1f428546..fde8f875 100644
--- a/src/luarocks/cmd/pack.lua
+++ b/src/luarocks/cmd/pack.lua
@@ -10,7 +10,6 @@ local queries = require("luarocks.queries")
10 10
11function cmd_pack.add_to_parser(parser) 11function cmd_pack.add_to_parser(parser)
12 local cmd = parser:command("pack", "Create a rock, packing sources or binaries.", util.see_also()) 12 local cmd = parser:command("pack", "Create a rock, packing sources or binaries.", util.see_also())
13 :add_help("--help")
14 13
15 cmd:argument("rock", "A rockspec file, for creating a source rock, or the ".. 14 cmd:argument("rock", "A rockspec file, for creating a source rock, or the "..
16 "name of an installed package, for creating a binary rock.") 15 "name of an installed package, for creating a binary rock.")
diff --git a/src/luarocks/cmd/path.lua b/src/luarocks/cmd/path.lua
index bdb1d2bc..b1da4c0b 100644
--- a/src/luarocks/cmd/path.lua
+++ b/src/luarocks/cmd/path.lua
@@ -18,7 +18,6 @@ And on Windows:
18 luarocks path > "%temp%\_lrp.bat" && call "%temp%\_lrp.bat" && del "%temp%\_lrp.bat"]], 18 luarocks path > "%temp%\_lrp.bat" && call "%temp%\_lrp.bat" && del "%temp%\_lrp.bat"]],
19 util.see_also()) 19 util.see_also())
20 :summary("Return the currently configured package path.") 20 :summary("Return the currently configured package path.")
21 :add_help("--help")
22 21
23 cmd:flag("--no-bin", "Do not export the PATH variable.") 22 cmd:flag("--no-bin", "Do not export the PATH variable.")
24 cmd:flag("--append", "Appends the paths to the existing paths. Default is ".. 23 cmd:flag("--append", "Appends the paths to the existing paths. Default is "..
diff --git a/src/luarocks/cmd/purge.lua b/src/luarocks/cmd/purge.lua
index c9102876..b71baa7c 100644
--- a/src/luarocks/cmd/purge.lua
+++ b/src/luarocks/cmd/purge.lua
@@ -23,7 +23,6 @@ By default, it removes all rocks from a tree.
23The --tree option is mandatory: luarocks purge does not assume a default tree.]], 23The --tree option is mandatory: luarocks purge does not assume a default tree.]],
24 util.see_also()) 24 util.see_also())
25 :summary("Remove all installed rocks from a tree.") 25 :summary("Remove all installed rocks from a tree.")
26 :add_help("--help")
27 26
28 cmd:flag("--old-versions", "Keep the highest-numbered version of each ".. 27 cmd:flag("--old-versions", "Keep the highest-numbered version of each "..
29 "rock and remove the other ones. By default it only removes old ".. 28 "rock and remove the other ones. By default it only removes old "..
diff --git a/src/luarocks/cmd/remove.lua b/src/luarocks/cmd/remove.lua
index 492ea5bb..f29b0b7d 100644
--- a/src/luarocks/cmd/remove.lua
+++ b/src/luarocks/cmd/remove.lua
@@ -23,7 +23,6 @@ Will only perform the removal if it does not break dependencies.
23To override this check and force the removal, use --force or --force-fast.]], 23To override this check and force the removal, use --force or --force-fast.]],
24 util.see_also()) 24 util.see_also())
25 :summary("Uninstall a rock.") 25 :summary("Uninstall a rock.")
26 :add_help("--help")
27 26
28 cmd:argument("rock", "Name of the rock to be uninstalled.") 27 cmd:argument("rock", "Name of the rock to be uninstalled.")
29 cmd:argument("version", "Version of the rock to uninstall.") 28 cmd:argument("version", "Version of the rock to uninstall.")
diff --git a/src/luarocks/cmd/search.lua b/src/luarocks/cmd/search.lua
index 37ec5272..f34cf7b9 100644
--- a/src/luarocks/cmd/search.lua
+++ b/src/luarocks/cmd/search.lua
@@ -11,7 +11,6 @@ local results = require("luarocks.results")
11 11
12function cmd_search.add_to_parser(parser) 12function cmd_search.add_to_parser(parser)
13 local cmd = parser:command("search", "Query the LuaRocks servers.", util.see_also()) 13 local cmd = parser:command("search", "Query the LuaRocks servers.", util.see_also())
14 :add_help("--help")
15 14
16 cmd:argument("name", "Name of the rock to search for.") 15 cmd:argument("name", "Name of the rock to search for.")
17 :args("?") 16 :args("?")
diff --git a/src/luarocks/cmd/show.lua b/src/luarocks/cmd/show.lua
index dd4b33d1..db7aed54 100644
--- a/src/luarocks/cmd/show.lua
+++ b/src/luarocks/cmd/show.lua
@@ -20,7 +20,6 @@ Show information about an installed rock.
20Without any flags, show all module information. 20Without any flags, show all module information.
21With flags, return only the desired information.]], util.see_also()) 21With flags, return only the desired information.]], util.see_also())
22 :summary("Show information about an installed rock.") 22 :summary("Show information about an installed rock.")
23 :add_help("--help")
24 23
25 cmd:argument("rock", "Name of an installed rock.") 24 cmd:argument("rock", "Name of an installed rock.")
26 cmd:argument("version", "Rock version.") 25 cmd:argument("version", "Rock version.")
diff --git a/src/luarocks/cmd/test.lua b/src/luarocks/cmd/test.lua
index 3f752d66..7a1ffda2 100644
--- a/src/luarocks/cmd/test.lua
+++ b/src/luarocks/cmd/test.lua
@@ -18,7 +18,6 @@ To make sure that test suite flags are not interpreted as LuaRocks flags, use --
18to separate LuaRocks arguments from test suite arguments.]], 18to separate LuaRocks arguments from test suite arguments.]],
19 util.see_also()) 19 util.see_also())
20 :summary("Run the test suite in the current directory.") 20 :summary("Run the test suite in the current directory.")
21 :add_help("--help")
22 21
23 cmd:argument("rockspec", "Project rockspec.") 22 cmd:argument("rockspec", "Project rockspec.")
24 :args("?") 23 :args("?")
diff --git a/src/luarocks/cmd/unpack.lua b/src/luarocks/cmd/unpack.lua
index 46a438ba..fe0535e4 100644
--- a/src/luarocks/cmd/unpack.lua
+++ b/src/luarocks/cmd/unpack.lua
@@ -17,7 +17,6 @@ Argument may be a rock file, or the name of a rock in a rocks server.
17In the latter case, the rock version may be given as a second argument.]], 17In the latter case, the rock version may be given as a second argument.]],
18 util.see_also()) 18 util.see_also())
19 :summary("Unpack the contents of a rock.") 19 :summary("Unpack the contents of a rock.")
20 :add_help("--help")
21 20
22 cmd:argument("rock", "A rock file or the name of a rock.") 21 cmd:argument("rock", "A rock file or the name of a rock.")
23 cmd:argument("version", "Rock version.") 22 cmd:argument("version", "Rock version.")
diff --git a/src/luarocks/cmd/upload.lua b/src/luarocks/cmd/upload.lua
index f19f1e93..6e3877ba 100644
--- a/src/luarocks/cmd/upload.lua
+++ b/src/luarocks/cmd/upload.lua
@@ -12,7 +12,6 @@ function upload.add_to_parser(parser)
12 local cmd = parser:command("upload", "Pack a source rock file (.src.rock extension) ".. 12 local cmd = parser:command("upload", "Pack a source rock file (.src.rock extension) "..
13 "and upload it and the rockspec to the public rocks repository.", util.see_also()) 13 "and upload it and the rockspec to the public rocks repository.", util.see_also())
14 :summary("Upload a rockspec to the public rocks repository.") 14 :summary("Upload a rockspec to the public rocks repository.")
15 :add_help("--help")
16 15
17 cmd:argument("rockspec", "Rockspec for the rock to upload.") 16 cmd:argument("rockspec", "Rockspec for the rock to upload.")
18 17
diff --git a/src/luarocks/cmd/which.lua b/src/luarocks/cmd/which.lua
index 7fdc5228..9a363e85 100644
--- a/src/luarocks/cmd/which.lua
+++ b/src/luarocks/cmd/which.lua
@@ -14,7 +14,6 @@ function which_cmd.add_to_parser(parser)
14 'luarocks.loader, like "/usr/local/lua/'..cfg.lua_version..'/foo/bar.lua".', 14 'luarocks.loader, like "/usr/local/lua/'..cfg.lua_version..'/foo/bar.lua".',
15 util.see_also()) 15 util.see_also())
16 :summary("Tell which file corresponds to a given module name.") 16 :summary("Tell which file corresponds to a given module name.")
17 :add_help("--help")
18 17
19 cmd:argument("modname", "Module name.") 18 cmd:argument("modname", "Module name.")
20end 19end
diff --git a/src/luarocks/cmd/write_rockspec.lua b/src/luarocks/cmd/write_rockspec.lua
index 3fdc8091..4ab0e534 100644
--- a/src/luarocks/cmd/write_rockspec.lua
+++ b/src/luarocks/cmd/write_rockspec.lua
@@ -62,7 +62,6 @@ using 'dev' as a fallback default version.
62Note that the generated file is a _starting point_ for writing a 62Note that the generated file is a _starting point_ for writing a
63rockspec, and is not guaranteed to be complete or correct. ]], util.see_also()) 63rockspec, and is not guaranteed to be complete or correct. ]], util.see_also())
64 :summary("Write a template for a rockspec file.") 64 :summary("Write a template for a rockspec file.")
65 :add_help("--help")
66 65
67 cmd:argument("name", "Name of the rock.") 66 cmd:argument("name", "Name of the rock.")
68 :args("?") 67 :args("?")