aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-pseudonym.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-pseudonym.c')
-rw-r--r--src/fs/gnunet-pseudonym.c94
1 files changed, 45 insertions, 49 deletions
diff --git a/src/fs/gnunet-pseudonym.c b/src/fs/gnunet-pseudonym.c
index 9f85f0545..465cbdd68 100644
--- a/src/fs/gnunet-pseudonym.c
+++ b/src/fs/gnunet-pseudonym.c
@@ -326,55 +326,6 @@ run (void *cls,
326 post_advertising (NULL, NULL, NULL); 326 post_advertising (NULL, NULL, NULL);
327} 327}
328 328
329/**
330 * gnunet-pseudonym command line options
331 */
332static struct GNUNET_GETOPT_CommandLineOption options[] = {
333 {'a', "anonymity", "LEVEL",
334 gettext_noop ("set the desired LEVEL of sender-anonymity"),
335 1, &GNUNET_GETOPT_set_uint, &anonymity},
336 {'A', "automate", NULL,
337 gettext_noop ("start a collection"),
338 0, &GNUNET_GETOPT_set_one, &start_automate},
339 {'C', "create", "NAME",
340 gettext_noop
341 ("create or advertise namespace NAME"),
342 1, &GNUNET_GETOPT_set_string, &create_ns},
343 {'D', "delete", "NAME",
344 gettext_noop
345 ("delete namespace NAME "),
346 1, &GNUNET_GETOPT_set_string, &delete_ns},
347 {'e', "end", NULL,
348 gettext_noop ("end current collection"),
349 0, &GNUNET_GETOPT_set_one, &stop_automate},
350 {'k', "keyword", "VALUE",
351 gettext_noop
352 ("add an additional keyword for the advertisment"
353 " (this option can be specified multiple times)"),
354 1, &GNUNET_FS_getopt_set_keywords, &ksk_uri},
355 {'m', "meta", "TYPE:VALUE",
356 gettext_noop ("set the meta-data for the given TYPE to the given VALUE"),
357 1, &GNUNET_FS_getopt_set_metadata, &adv_metadata},
358 {'o', "only-local", NULL,
359 gettext_noop ("print names of local namespaces"),
360 0, &GNUNET_GETOPT_set_one, &print_local_only},
361 {'p', "priority", "PRIORITY",
362 gettext_noop ("use the given PRIORITY for the advertisments"),
363 1, &GNUNET_GETOPT_set_uint, &priority},
364 {'q', "quiet", NULL,
365 gettext_noop ("do not print names of remote namespaces"),
366 0, &GNUNET_GETOPT_set_one, &no_remote_printing},
367 {'r', "root", "ID",
368 gettext_noop
369 ("specify ID of the root of the namespace"),
370 1, &GNUNET_GETOPT_set_string, &root_identifier},
371 {'s', "set-rating", "ID:VALUE",
372 gettext_noop
373 ("change rating of namespace ID by VALUE"),
374 1, &GNUNET_GETOPT_set_string, &rating_change},
375 GNUNET_GETOPT_OPTION_END
376};
377
378 329
379/** 330/**
380 * The main function to inspect GNUnet directories. 331 * The main function to inspect GNUnet directories.
@@ -386,6 +337,51 @@ static struct GNUNET_GETOPT_CommandLineOption options[] = {
386int 337int
387main (int argc, char *const *argv) 338main (int argc, char *const *argv)
388{ 339{
340 static const struct GNUNET_GETOPT_CommandLineOption options[] = {
341 {'a', "anonymity", "LEVEL",
342 gettext_noop ("set the desired LEVEL of sender-anonymity"),
343 1, &GNUNET_GETOPT_set_uint, &anonymity},
344 {'A', "automate", NULL,
345 gettext_noop ("start a collection"),
346 0, &GNUNET_GETOPT_set_one, &start_automate},
347 {'C', "create", "NAME",
348 gettext_noop
349 ("create or advertise namespace NAME"),
350 1, &GNUNET_GETOPT_set_string, &create_ns},
351 {'D', "delete", "NAME",
352 gettext_noop
353 ("delete namespace NAME "),
354 1, &GNUNET_GETOPT_set_string, &delete_ns},
355 {'e', "end", NULL,
356 gettext_noop ("end current collection"),
357 0, &GNUNET_GETOPT_set_one, &stop_automate},
358 {'k', "keyword", "VALUE",
359 gettext_noop
360 ("add an additional keyword for the advertisment"
361 " (this option can be specified multiple times)"),
362 1, &GNUNET_FS_getopt_set_keywords, &ksk_uri},
363 {'m', "meta", "TYPE:VALUE",
364 gettext_noop ("set the meta-data for the given TYPE to the given VALUE"),
365 1, &GNUNET_FS_getopt_set_metadata, &adv_metadata},
366 {'o', "only-local", NULL,
367 gettext_noop ("print names of local namespaces"),
368 0, &GNUNET_GETOPT_set_one, &print_local_only},
369 {'p', "priority", "PRIORITY",
370 gettext_noop ("use the given PRIORITY for the advertisments"),
371 1, &GNUNET_GETOPT_set_uint, &priority},
372 {'q', "quiet", NULL,
373 gettext_noop ("do not print names of remote namespaces"),
374 0, &GNUNET_GETOPT_set_one, &no_remote_printing},
375 {'r', "root", "ID",
376 gettext_noop
377 ("specify ID of the root of the namespace"),
378 1, &GNUNET_GETOPT_set_string, &root_identifier},
379 {'s', "set-rating", "ID:VALUE",
380 gettext_noop
381 ("change rating of namespace ID by VALUE"),
382 1, &GNUNET_GETOPT_set_string, &rating_change},
383 GNUNET_GETOPT_OPTION_END
384 };
389 return (GNUNET_OK == 385 return (GNUNET_OK ==
390 GNUNET_PROGRAM_run (argc, 386 GNUNET_PROGRAM_run (argc,
391 argv, 387 argv,