aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo-tool/gnunet-peerinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/peerinfo-tool/gnunet-peerinfo.c')
-rw-r--r--src/peerinfo-tool/gnunet-peerinfo.c28
1 files changed, 12 insertions, 16 deletions
diff --git a/src/peerinfo-tool/gnunet-peerinfo.c b/src/peerinfo-tool/gnunet-peerinfo.c
index a3fa98fa9..ab3eff83b 100644
--- a/src/peerinfo-tool/gnunet-peerinfo.c
+++ b/src/peerinfo-tool/gnunet-peerinfo.c
@@ -305,22 +305,6 @@ run (void *cls,
305 305
306 306
307/** 307/**
308 * gnunet-peerinfo command line options
309 */
310static struct GNUNET_GETOPT_CommandLineOption options[] = {
311 {'n', "numeric", NULL,
312 gettext_noop ("don't resolve host names"),
313 0, &GNUNET_GETOPT_set_one, &no_resolve},
314 {'q', "quiet", NULL,
315 gettext_noop ("output only the identity strings"),
316 0, &GNUNET_GETOPT_set_one, &be_quiet},
317 {'s', "self", NULL,
318 gettext_noop ("output our own identity only"),
319 0, &GNUNET_GETOPT_set_one, &get_self},
320 GNUNET_GETOPT_OPTION_END
321};
322
323/**
324 * The main function to obtain peer information. 308 * The main function to obtain peer information.
325 * 309 *
326 * @param argc number of arguments from the command line 310 * @param argc number of arguments from the command line
@@ -330,6 +314,18 @@ static struct GNUNET_GETOPT_CommandLineOption options[] = {
330int 314int
331main (int argc, char *const *argv) 315main (int argc, char *const *argv)
332{ 316{
317 static const struct GNUNET_GETOPT_CommandLineOption options[] = {
318 {'n', "numeric", NULL,
319 gettext_noop ("don't resolve host names"),
320 0, &GNUNET_GETOPT_set_one, &no_resolve},
321 {'q', "quiet", NULL,
322 gettext_noop ("output only the identity strings"),
323 0, &GNUNET_GETOPT_set_one, &be_quiet},
324 {'s', "self", NULL,
325 gettext_noop ("output our own identity only"),
326 0, &GNUNET_GETOPT_set_one, &get_self},
327 GNUNET_GETOPT_OPTION_END
328 };
333 return (GNUNET_OK == 329 return (GNUNET_OK ==
334 GNUNET_PROGRAM_run (argc, 330 GNUNET_PROGRAM_run (argc,
335 argv, 331 argv,