aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-search.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-search.c
parent640ae593fd34d27034f994a2e945a8942f1a4d5d (diff)
downloadgnunet-200aaa0dd6813f19eb7ed67a0fdc301d091fc2d7.tar.gz
gnunet-200aaa0dd6813f19eb7ed67a0fdc301d091fc2d7.zip
localization
of scopes
Diffstat (limited to 'src/fs/gnunet-search.c')
-rw-r--r--src/fs/gnunet-search.c37
1 files changed, 16 insertions, 21 deletions
diff --git a/src/fs/gnunet-search.c b/src/fs/gnunet-search.c
index 6123ecfef..3fbe2a27e 100644
--- a/src/fs/gnunet-search.c
+++ b/src/fs/gnunet-search.c
@@ -293,27 +293,6 @@ run (void *cls,
293 293
294 294
295/** 295/**
296 * gnunet-search command line options
297 */
298static struct GNUNET_GETOPT_CommandLineOption options[] = {
299 {'a', "anonymity", "LEVEL",
300 gettext_noop ("set the desired LEVEL of receiver-anonymity"),
301 1, &GNUNET_GETOPT_set_uint, &anonymity},
302 {'n', "no-network", NULL,
303 gettext_noop ("only search the local peer (no P2P network search)"),
304 1, &GNUNET_GETOPT_set_uint, &local_only},
305 {'o', "output", "PREFIX",
306 gettext_noop
307 ("write search results to file starting with PREFIX"),
308 1, &GNUNET_GETOPT_set_string, &output_filename},
309 {'V', "verbose", NULL,
310 gettext_noop ("be verbose (print progress information)"),
311 0, &GNUNET_GETOPT_set_one, &verbose},
312 GNUNET_GETOPT_OPTION_END
313};
314
315
316/**
317 * The main function to search GNUnet. 296 * The main function to search GNUnet.
318 * 297 *
319 * @param argc number of arguments from the command line 298 * @param argc number of arguments from the command line
@@ -323,6 +302,22 @@ static struct GNUNET_GETOPT_CommandLineOption options[] = {
323int 302int
324main (int argc, char *const *argv) 303main (int argc, char *const *argv)
325{ 304{
305 static const struct GNUNET_GETOPT_CommandLineOption options[] = {
306 {'a', "anonymity", "LEVEL",
307 gettext_noop ("set the desired LEVEL of receiver-anonymity"),
308 1, &GNUNET_GETOPT_set_uint, &anonymity},
309 {'n', "no-network", NULL,
310 gettext_noop ("only search the local peer (no P2P network search)"),
311 1, &GNUNET_GETOPT_set_uint, &local_only},
312 {'o', "output", "PREFIX",
313 gettext_noop
314 ("write search results to file starting with PREFIX"),
315 1, &GNUNET_GETOPT_set_string, &output_filename},
316 {'V', "verbose", NULL,
317 gettext_noop ("be verbose (print progress information)"),
318 0, &GNUNET_GETOPT_set_one, &verbose},
319 GNUNET_GETOPT_OPTION_END
320 };
326 return (GNUNET_OK == 321 return (GNUNET_OK ==
327 GNUNET_PROGRAM_run (argc, 322 GNUNET_PROGRAM_run (argc,
328 argv, 323 argv,