aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2012-01-05 01:18:47 -0200
committerHisham Muhammad <hisham@gobolinux.org>2012-01-05 01:18:47 -0200
commitbe3b354b8a42ef40ad04464ecf58bf7d9d7dc5ff (patch)
treedc82ccb1bf8595d057cbf42230d7a5fe4b950851 /src
parent50857122d613d208c72342922422bd50c6afa3ee (diff)
downloadluarocks-be3b354b8a42ef40ad04464ecf58bf7d9d7dc5ff.tar.gz
luarocks-be3b354b8a42ef40ad04464ecf58bf7d9d7dc5ff.tar.bz2
luarocks-be3b354b8a42ef40ad04464ecf58bf7d9d7dc5ff.zip
Fix flag in luarocks-admin add command
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/add.lua6
1 files 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")
13local cache = require("luarocks.cache") 13local cache = require("luarocks.cache")
14 14
15help_summary = "Add a rock or rockspec to a rocks server." 15help_summary = "Add a rock or rockspec to a rocks server."
16help_arguments = "[--to=<server>] [--no-refresh] {<rockspec>|<rock>...}" 16help_arguments = "[--server=<server>] [--no-refresh] {<rockspec>|<rock>...}"
17help = [[ 17help = [[
18Arguments are local files, which may be rockspecs or rocks. 18Arguments are local files, which may be rockspecs or rocks.
19The flag --to indicates which server to use. 19The flag --server indicates which server to use.
20If not given, the default server set in the upload_server variable 20If not given, the default server set in the upload_server variable
21from the configuration file is used instead. 21from the configuration file is used instead.
22The flag --no-refresh indicates the local cache should not be refreshed 22The flag --no-refresh indicates the local cache should not be refreshed
@@ -101,7 +101,7 @@ function run(...)
101 if #files < 1 then 101 if #files < 1 then
102 return nil, "Argument missing, see help." 102 return nil, "Argument missing, see help."
103 end 103 end
104 local server, server_table = cache.get_upload_server(flags["tree"]) 104 local server, server_table = cache.get_upload_server(flags["server"])
105 if not server then return nil, server_table end 105 if not server then return nil, server_table end
106 return add_files_to_server(not flags["no-refresh"], files, server, server_table) 106 return add_files_to_server(not flags["no-refresh"], files, server, server_table)
107end 107end