From be3b354b8a42ef40ad04464ecf58bf7d9d7dc5ff Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 5 Jan 2012 01:18:47 -0200 Subject: Fix flag in luarocks-admin add command --- src/luarocks/add.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/luarocks/add.lua b/src/luarocks/add.lua index 9a729ada..bf3f8979 100644 --- a/src/luarocks/add.lua +++ b/src/luarocks/add.lua @@ -13,10 +13,10 @@ local fs = require("luarocks.fs") local cache = require("luarocks.cache") help_summary = "Add a rock or rockspec to a rocks server." -help_arguments = "[--to=] [--no-refresh] {|...}" +help_arguments = "[--server=] [--no-refresh] {|...}" help = [[ Arguments are local files, which may be rockspecs or rocks. -The flag --to indicates which server to use. +The flag --server indicates which server to use. If not given, the default server set in the upload_server variable from the configuration file is used instead. The flag --no-refresh indicates the local cache should not be refreshed @@ -101,7 +101,7 @@ function run(...) if #files < 1 then return nil, "Argument missing, see help." end - local server, server_table = cache.get_upload_server(flags["tree"]) + local server, server_table = cache.get_upload_server(flags["server"]) if not server then return nil, server_table end return add_files_to_server(not flags["no-refresh"], files, server, server_table) end -- cgit v1.2.3-55-g6feb