diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-03-17 12:07:08 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-03-17 12:07:08 +0100 |
commit | 5b085881ab278a85c3ef3a1d91c58a5724a4e430 (patch) | |
tree | 6da52a32d424e01d68d98216f254612492ed1754 /src/hostlist | |
parent | 2951cdb72d730529e2382fca76607681cfc0a3c6 (diff) | |
parent | c253a40bae417335fab8446f3c7182c8c5d4833f (diff) | |
download | gnunet-5b085881ab278a85c3ef3a1d91c58a5724a4e430.tar.gz gnunet-5b085881ab278a85c3ef3a1d91c58a5724a4e430.zip |
Merge branch 'getopt'
Diffstat (limited to 'src/hostlist')
-rw-r--r-- | src/hostlist/gnunet-daemon-hostlist.c | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/src/hostlist/gnunet-daemon-hostlist.c b/src/hostlist/gnunet-daemon-hostlist.c index a83d46e07..9b4790c32 100644 --- a/src/hostlist/gnunet-daemon-hostlist.c +++ b/src/hostlist/gnunet-daemon-hostlist.c | |||
@@ -369,23 +369,26 @@ run (void *cls, | |||
369 | int | 369 | int |
370 | main (int argc, char *const *argv) | 370 | main (int argc, char *const *argv) |
371 | { | 371 | { |
372 | static const struct GNUNET_GETOPT_CommandLineOption options[] = { | 372 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
373 | #if HAVE_MHD | 373 | #if HAVE_MHD |
374 | {'a', "advertise", NULL, | 374 | GNUNET_GETOPT_OPTION_SET_ONE ('a', |
375 | gettext_noop ("advertise our hostlist to other peers"), | 375 | "advertise", |
376 | GNUNET_NO, &GNUNET_GETOPT_set_one, &advertising}, | 376 | gettext_noop ("advertise our hostlist to other peers"), |
377 | &advertising), | ||
377 | #endif | 378 | #endif |
378 | {'b', "bootstrap", NULL, | 379 | GNUNET_GETOPT_OPTION_SET_ONE ('b', |
379 | gettext_noop | 380 | "bootstrap", |
380 | ("bootstrap using hostlists (it is highly recommended that you always use this option)"), | 381 | gettext_noop ("bootstrap using hostlists (it is highly recommended that you always use this option)"), |
381 | GNUNET_NO, &GNUNET_GETOPT_set_one, &bootstrapping}, | 382 | &bootstrapping), |
382 | {'e', "enable-learning", NULL, | 383 | GNUNET_GETOPT_OPTION_SET_ONE ('e', |
383 | gettext_noop ("enable learning about hostlist servers from other peers"), | 384 | "enable-learning", |
384 | GNUNET_NO, &GNUNET_GETOPT_set_one, &learning}, | 385 | gettext_noop ("enable learning about hostlist servers from other peers"), |
386 | &learning), | ||
385 | #if HAVE_MHD | 387 | #if HAVE_MHD |
386 | {'p', "provide-hostlist", NULL, | 388 | GNUNET_GETOPT_OPTION_SET_ONE ('p', |
387 | gettext_noop ("provide a hostlist server"), | 389 | "provide-hostlist", |
388 | GNUNET_NO, &GNUNET_GETOPT_set_one, &provide_hostlist}, | 390 | gettext_noop ("provide a hostlist server"), |
391 | &provide_hostlist), | ||
389 | #endif | 392 | #endif |
390 | GNUNET_GETOPT_OPTION_END | 393 | GNUNET_GETOPT_OPTION_END |
391 | }; | 394 | }; |