aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-download.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-06-18 14:09:55 +0000
committerChristian Grothoff <christian@grothoff.org>2010-06-18 14:09:55 +0000
commit200aaa0dd6813f19eb7ed67a0fdc301d091fc2d7 (patch)
treef89388586fbf00a3b7c985b2b28bb74abda3a364 /src/fs/gnunet-download.c
parent640ae593fd34d27034f994a2e945a8942f1a4d5d (diff)
downloadgnunet-200aaa0dd6813f19eb7ed67a0fdc301d091fc2d7.tar.gz
gnunet-200aaa0dd6813f19eb7ed67a0fdc301d091fc2d7.zip
localization
of scopes
Diffstat (limited to 'src/fs/gnunet-download.c')
-rw-r--r--src/fs/gnunet-download.c63
1 files changed, 29 insertions, 34 deletions
diff --git a/src/fs/gnunet-download.c b/src/fs/gnunet-download.c
index fde254d7c..a171006cb 100644
--- a/src/fs/gnunet-download.c
+++ b/src/fs/gnunet-download.c
@@ -253,40 +253,6 @@ run (void *cls,
253 253
254 254
255/** 255/**
256 * gnunet-download command line options
257 */
258static struct GNUNET_GETOPT_CommandLineOption options[] = {
259 {'a', "anonymity", "LEVEL",
260 gettext_noop ("set the desired LEVEL of receiver-anonymity"),
261 1, &GNUNET_GETOPT_set_uint, &anonymity},
262 {'D', "delete-incomplete", NULL,
263 gettext_noop ("delete incomplete downloads (when aborted with CTRL-C)"),
264 0, &GNUNET_GETOPT_set_one, &delete_incomplete},
265 {'n', "no-network", NULL,
266 gettext_noop ("only search the local peer (no P2P network search)"),
267 1, &GNUNET_GETOPT_set_uint, &local_only},
268 {'o', "output", "FILENAME",
269 gettext_noop ("write the file to FILENAME"),
270 1, &GNUNET_GETOPT_set_string, &filename},
271 {'p', "parallelism", "DOWNLOADS",
272 gettext_noop
273 ("set the maximum number of parallel downloads that is allowed"),
274 1, &GNUNET_GETOPT_set_uint, &parallelism},
275 {'r', "request-parallelism", "REQUESTS",
276 gettext_noop
277 ("set the maximum number of parallel requests for blocks that is allowed"),
278 1, &GNUNET_GETOPT_set_uint, &request_parallelism},
279 {'R', "recursive", NULL,
280 gettext_noop ("download a GNUnet directory recursively"),
281 0, &GNUNET_GETOPT_set_one, &do_recursive},
282 {'V', "verbose", NULL,
283 gettext_noop ("be verbose (print progress information)"),
284 0, &GNUNET_GETOPT_set_one, &verbose},
285 GNUNET_GETOPT_OPTION_END
286};
287
288
289/**
290 * The main function to download GNUnet. 256 * The main function to download GNUnet.
291 * 257 *
292 * @param argc number of arguments from the command line 258 * @param argc number of arguments from the command line
@@ -296,6 +262,35 @@ static struct GNUNET_GETOPT_CommandLineOption options[] = {
296int 262int
297main (int argc, char *const *argv) 263main (int argc, char *const *argv)
298{ 264{
265 static const struct GNUNET_GETOPT_CommandLineOption options[] = {
266 {'a', "anonymity", "LEVEL",
267 gettext_noop ("set the desired LEVEL of receiver-anonymity"),
268 1, &GNUNET_GETOPT_set_uint, &anonymity},
269 {'D', "delete-incomplete", NULL,
270 gettext_noop ("delete incomplete downloads (when aborted with CTRL-C)"),
271 0, &GNUNET_GETOPT_set_one, &delete_incomplete},
272 {'n', "no-network", NULL,
273 gettext_noop ("only search the local peer (no P2P network search)"),
274 1, &GNUNET_GETOPT_set_uint, &local_only},
275 {'o', "output", "FILENAME",
276 gettext_noop ("write the file to FILENAME"),
277 1, &GNUNET_GETOPT_set_string, &filename},
278 {'p', "parallelism", "DOWNLOADS",
279 gettext_noop
280 ("set the maximum number of parallel downloads that is allowed"),
281 1, &GNUNET_GETOPT_set_uint, &parallelism},
282 {'r', "request-parallelism", "REQUESTS",
283 gettext_noop
284 ("set the maximum number of parallel requests for blocks that is allowed"),
285 1, &GNUNET_GETOPT_set_uint, &request_parallelism},
286 {'R', "recursive", NULL,
287 gettext_noop ("download a GNUnet directory recursively"),
288 0, &GNUNET_GETOPT_set_one, &do_recursive},
289 {'V', "verbose", NULL,
290 gettext_noop ("be verbose (print progress information)"),
291 0, &GNUNET_GETOPT_set_one, &verbose},
292 GNUNET_GETOPT_OPTION_END
293 };
299 return (GNUNET_OK == 294 return (GNUNET_OK ==
300 GNUNET_PROGRAM_run (argc, 295 GNUNET_PROGRAM_run (argc,
301 argv, 296 argv,