diff options
Diffstat (limited to 'src/gns/gnunet-gns.c')
-rw-r--r-- | src/gns/gnunet-gns.c | 56 |
1 files changed, 37 insertions, 19 deletions
diff --git a/src/gns/gnunet-gns.c b/src/gns/gnunet-gns.c index a261e008b..c85ddfe81 100644 --- a/src/gns/gnunet-gns.c +++ b/src/gns/gnunet-gns.c | |||
@@ -420,25 +420,43 @@ int | |||
420 | main (int argc, | 420 | main (int argc, |
421 | char *const *argv) | 421 | char *const *argv) |
422 | { | 422 | { |
423 | static const struct GNUNET_GETOPT_CommandLineOption options[] = { | 423 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
424 | {'u', "lookup", "NAME", | 424 | |
425 | gettext_noop ("Lookup a record for the given name"), 1, | 425 | GNUNET_GETOPT_OPTION_STRING ('u', |
426 | &GNUNET_GETOPT_set_string, &lookup_name}, | 426 | "lookup", |
427 | {'t', "type", "TYPE", | 427 | "NAME", |
428 | gettext_noop ("Specify the type of the record to lookup"), 1, | 428 | gettext_noop ("Lookup a record for the given name"), |
429 | &GNUNET_GETOPT_set_string, &lookup_type}, | 429 | &lookup_name), |
430 | { 'T', "timeout", "DELAY", | 430 | |
431 | gettext_noop ("Specify timeout for the lookup"), 1, | 431 | GNUNET_GETOPT_OPTION_STRING ('t', |
432 | &GNUNET_GETOPT_set_relative_time, &timeout }, | 432 | "type", |
433 | {'r', "raw", NULL, | 433 | "TYPE", |
434 | gettext_noop ("No unneeded output"), 0, | 434 | gettext_noop ("Specify the type of the record to lookup"), |
435 | &GNUNET_GETOPT_set_one, &raw}, | 435 | &lookup_type), |
436 | {'p', "public-key", "PKEY", | 436 | |
437 | gettext_noop ("Specify the public key of the zone to lookup the record in"), 1, | 437 | GNUNET_GETOPT_OPTION_SET_RELATIVE_TIME ('T', |
438 | &GNUNET_GETOPT_set_string, &public_key}, | 438 | "timeout", |
439 | {'z', "zone", "NAME", | 439 | "DELAY", |
440 | gettext_noop ("Specify the name of the ego of the zone to lookup the record in"), 1, | 440 | gettext_noop ("Specify timeout for the lookup"), |
441 | &GNUNET_GETOPT_set_string, &zone_ego_name}, | 441 | &timeout), |
442 | |||
443 | GNUNET_GETOPT_OPTION_SET_ONE ('r', | ||
444 | "raw", | ||
445 | gettext_noop ("No unneeded output"), | ||
446 | &raw), | ||
447 | |||
448 | GNUNET_GETOPT_OPTION_STRING ('p', | ||
449 | "public-key", | ||
450 | "PKEY", | ||
451 | gettext_noop ("Specify the public key of the zone to lookup the record in"), | ||
452 | &public_key), | ||
453 | |||
454 | GNUNET_GETOPT_OPTION_STRING ('z', | ||
455 | "zone", | ||
456 | "NAME", | ||
457 | gettext_noop ("Specify the name of the ego of the zone to lookup the record in"), | ||
458 | &zone_ego_name), | ||
459 | |||
442 | GNUNET_GETOPT_OPTION_END | 460 | GNUNET_GETOPT_OPTION_END |
443 | }; | 461 | }; |
444 | int ret; | 462 | int ret; |