diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2012-01-05 01:18:47 -0200 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2012-01-05 01:18:47 -0200 |
| commit | be3b354b8a42ef40ad04464ecf58bf7d9d7dc5ff (patch) | |
| tree | dc82ccb1bf8595d057cbf42230d7a5fe4b950851 | |
| parent | 50857122d613d208c72342922422bd50c6afa3ee (diff) | |
| download | luarocks-be3b354b8a42ef40ad04464ecf58bf7d9d7dc5ff.tar.gz luarocks-be3b354b8a42ef40ad04464ecf58bf7d9d7dc5ff.tar.bz2 luarocks-be3b354b8a42ef40ad04464ecf58bf7d9d7dc5ff.zip | |
Fix flag in luarocks-admin add command
| -rw-r--r-- | src/luarocks/add.lua | 6 |
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") | |||
| 13 | local cache = require("luarocks.cache") | 13 | local cache = require("luarocks.cache") |
| 14 | 14 | ||
| 15 | help_summary = "Add a rock or rockspec to a rocks server." | 15 | help_summary = "Add a rock or rockspec to a rocks server." |
| 16 | help_arguments = "[--to=<server>] [--no-refresh] {<rockspec>|<rock>...}" | 16 | help_arguments = "[--server=<server>] [--no-refresh] {<rockspec>|<rock>...}" |
| 17 | help = [[ | 17 | help = [[ |
| 18 | Arguments are local files, which may be rockspecs or rocks. | 18 | Arguments are local files, which may be rockspecs or rocks. |
| 19 | The flag --to indicates which server to use. | 19 | The flag --server indicates which server to use. |
| 20 | If not given, the default server set in the upload_server variable | 20 | If not given, the default server set in the upload_server variable |
| 21 | from the configuration file is used instead. | 21 | from the configuration file is used instead. |
| 22 | The flag --no-refresh indicates the local cache should not be refreshed | 22 | The 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) |
| 107 | end | 107 | end |
