From 545805531805cd3ed267296460441f321a0e6aba Mon Sep 17 00:00:00 2001 From: Paul Ouellette Date: Fri, 16 Aug 2019 01:01:55 -0400 Subject: Use default -h flag --- src/luarocks/admin/cmd/add.lua | 1 - src/luarocks/admin/cmd/make_manifest.lua | 1 - src/luarocks/admin/cmd/refresh_cache.lua | 1 - src/luarocks/admin/cmd/remove.lua | 1 - src/luarocks/cmd.lua | 1 - src/luarocks/cmd/build.lua | 1 - src/luarocks/cmd/config.lua | 1 - src/luarocks/cmd/doc.lua | 1 - src/luarocks/cmd/download.lua | 1 - src/luarocks/cmd/init.lua | 1 - src/luarocks/cmd/install.lua | 1 - src/luarocks/cmd/lint.lua | 1 - src/luarocks/cmd/list.lua | 1 - src/luarocks/cmd/make.lua | 1 - src/luarocks/cmd/new_version.lua | 1 - src/luarocks/cmd/pack.lua | 1 - src/luarocks/cmd/path.lua | 1 - src/luarocks/cmd/purge.lua | 1 - src/luarocks/cmd/remove.lua | 1 - src/luarocks/cmd/search.lua | 1 - src/luarocks/cmd/show.lua | 1 - src/luarocks/cmd/test.lua | 1 - src/luarocks/cmd/unpack.lua | 1 - src/luarocks/cmd/upload.lua | 1 - src/luarocks/cmd/which.lua | 1 - src/luarocks/cmd/write_rockspec.lua | 1 - 26 files changed, 26 deletions(-) (limited to 'src') 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") function add.add_to_parser(parser) local cmd = parser:command("add", "Add a rock or rockspec to a rocks server.", util.see_also()) - :add_help("--help") cmd:argument("rock", "A local rockspec or rock file.") :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") function make_manifest.add_to_parser(parser) local cmd = parser:command("make_manifest", "Compile a manifest file for a repository.", util.see_also()) - :add_help("--help") cmd:argument("repository", "Local repository pathname.") :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") function refresh_cache.add_to_parser(parser) local cmd = parser:command("refresh_cache", "Refresh local cache of a remote rocks server.", util.see_also()) - :add_help("--help") cmd:option("--from", "The server to use. If not given, the default server ".. "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") function admin_remove.add_to_parser(parser) local cmd = parser:command("remove", "Remove a rock or rockspec from a rocks server.", util.see_also()) - :add_help("--help") cmd:argument("rock", "A local rockspec or rock file.") :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: basename, "LuaRocks "..cfg.program_version..", the Lua package manager\n\n".. program.." - "..description, epilog) :help_max_width(80) - :add_help("--help") :add_help_command() :add_complete_command({ 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) local cmd = parser:command("build", "Build and install a rock, compiling its C parts if any.\n".. "If no arguments are given, behaves as luarocks make.", util.see_also()) :summary("Build/compile a rock.") - :add_help("--help") cmd:argument("rock", "A rockspec file, a source rock file, or the name of ".. "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. for detailed information on the LuaRocks config file format. ]])) :summary("Query information about the LuaRocks configuration.") - :add_help("--help") cmd:argument("key", "The configuration key.") :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) For more information about a rock, see the 'show' command. ]])) :summary("Show documentation for an installed rock.") - :add_help("--help") cmd:argument("rock", "Name of the rock.") 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") function cmd_download.add_to_parser(parser) local cmd = parser:command("download", "Download a specific rock file from a rocks server.", util.see_also()) - :add_help("--help") cmd:argument("name", "Name of the rock.") :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") function init.add_to_parser(parser) local cmd = parser:command("init", "Initialize a directory for a Lua project using LuaRocks.", util.see_also()) - :add_help("--help") cmd:argument("name", "The project name.") :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") function install.add_to_parser(parser) local cmd = parser:command("install", "Install a rock.", util.see_also()) - :add_help("--help") cmd:argument("rock", "The name of a rock to be fetched from a repository ".. "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) "Returns success if the text of the rockspec is syntactically correct, else failure.", util.see_also()) :summary("Check syntax of a rockspec.") - :add_help("--help") cmd:argument("rockspec", "The rockspec to check.") end 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") function list.add_to_parser(parser) local cmd = parser:command("list", "List currently installed rocks.", util.see_also()) - :add_help("--help") cmd:argument("filter", "A substring of a rock name to filter by.") :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 only dependencies of the rockspec (see `luarocks help install`). ]], util.see_also()) :summary("Compile package in current directory using a rockspec.") - :add_help("--help") cmd:argument("rockspec", "Rockspec for the rock to build.") :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. WARNING: it writes the new rockspec to the given directory, overwriting the file if it already exists.]], util.see_also()) :summary("Auto-write a rockspec for a new version of a rock.") - :add_help("--help") cmd:argument("rock", "Package name or rockspec.") :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") function cmd_pack.add_to_parser(parser) local cmd = parser:command("pack", "Create a rock, packing sources or binaries.", util.see_also()) - :add_help("--help") cmd:argument("rock", "A rockspec file, for creating a source rock, or the ".. "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: luarocks path > "%temp%\_lrp.bat" && call "%temp%\_lrp.bat" && del "%temp%\_lrp.bat"]], util.see_also()) :summary("Return the currently configured package path.") - :add_help("--help") cmd:flag("--no-bin", "Do not export the PATH variable.") 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. The --tree option is mandatory: luarocks purge does not assume a default tree.]], util.see_also()) :summary("Remove all installed rocks from a tree.") - :add_help("--help") cmd:flag("--old-versions", "Keep the highest-numbered version of each ".. "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. To override this check and force the removal, use --force or --force-fast.]], util.see_also()) :summary("Uninstall a rock.") - :add_help("--help") cmd:argument("rock", "Name of the rock to be uninstalled.") 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") function cmd_search.add_to_parser(parser) local cmd = parser:command("search", "Query the LuaRocks servers.", util.see_also()) - :add_help("--help") cmd:argument("name", "Name of the rock to search for.") :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. Without any flags, show all module information. With flags, return only the desired information.]], util.see_also()) :summary("Show information about an installed rock.") - :add_help("--help") cmd:argument("rock", "Name of an installed rock.") 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 -- to separate LuaRocks arguments from test suite arguments.]], util.see_also()) :summary("Run the test suite in the current directory.") - :add_help("--help") cmd:argument("rockspec", "Project rockspec.") :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. In the latter case, the rock version may be given as a second argument.]], util.see_also()) :summary("Unpack the contents of a rock.") - :add_help("--help") cmd:argument("rock", "A rock file or the name of a rock.") 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) local cmd = parser:command("upload", "Pack a source rock file (.src.rock extension) ".. "and upload it and the rockspec to the public rocks repository.", util.see_also()) :summary("Upload a rockspec to the public rocks repository.") - :add_help("--help") cmd:argument("rockspec", "Rockspec for the rock to upload.") 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) 'luarocks.loader, like "/usr/local/lua/'..cfg.lua_version..'/foo/bar.lua".', util.see_also()) :summary("Tell which file corresponds to a given module name.") - :add_help("--help") cmd:argument("modname", "Module name.") end 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. Note that the generated file is a _starting point_ for writing a rockspec, and is not guaranteed to be complete or correct. ]], util.see_also()) :summary("Write a template for a rockspec file.") - :add_help("--help") cmd:argument("name", "Name of the rock.") :args("?") -- cgit v1.2.3-55-g6feb