aboutsummaryrefslogtreecommitdiff
path: root/src/identity/gnunet-identity.c
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2017-03-15 21:03:50 +0100
committerMarcello Stanisci <marcello.stanisci@inria.fr>2017-03-15 21:03:50 +0100
commitfef8c5c79d628ac0823fdae238fd0b70a1f1eb94 (patch)
tree4e05a8fc5f3254fbe2b3325a7c6f6f61f892b66a /src/identity/gnunet-identity.c
parente6b3fec9e4a573e1f0c594a3c2f345357c0c12b8 (diff)
downloadgnunet-fef8c5c79d628ac0823fdae238fd0b70a1f1eb94.tar.gz
gnunet-fef8c5c79d628ac0823fdae238fd0b70a1f1eb94.zip
porting.
Diffstat (limited to 'src/identity/gnunet-identity.c')
-rw-r--r--src/identity/gnunet-identity.c54
1 files changed, 35 insertions, 19 deletions
diff --git a/src/identity/gnunet-identity.c b/src/identity/gnunet-identity.c
index 8c8485249..5c457ef5d 100644
--- a/src/identity/gnunet-identity.c
+++ b/src/identity/gnunet-identity.c
@@ -349,25 +349,41 @@ run (void *cls,
349int 349int
350main (int argc, char *const *argv) 350main (int argc, char *const *argv)
351{ 351{
352 static const struct GNUNET_GETOPT_CommandLineOption options[] = { 352 struct GNUNET_GETOPT_CommandLineOption options[] = {
353 {'C', "create", "NAME", 353 GNUNET_GETOPT_OPTION_STRING ('C',
354 gettext_noop ("create ego NAME"), 354 "create",
355 1, &GNUNET_GETOPT_set_string, &create_ego}, 355 "NAME",
356 {'D', "delete", "NAME", 356 gettext_noop ("create ego NAME"),
357 gettext_noop ("delete ego NAME "), 357 &create_ego),
358 1, &GNUNET_GETOPT_set_string, &delete_ego}, 358
359 {'d', "display", NULL, 359 GNUNET_GETOPT_OPTION_STRING ('D',
360 gettext_noop ("display all egos"), 360 "delete",
361 0, &GNUNET_GETOPT_set_one, &list}, 361 "NAME",
362 {'e', "ego", "NAME", 362 gettext_noop ("delete ego NAME "),
363 gettext_noop ("set default identity to EGO for a subsystem SUBSYSTEM (use together with -s)"), 363 &delete_ego),
364 1, &GNUNET_GETOPT_set_string, &set_ego}, 364
365 {'m', "monitor", NULL, 365 GNUNET_GETOPT_OPTION_SET_ONE ('d',
366 gettext_noop ("run in monitor mode egos"), 366 "display",
367 0, &GNUNET_GETOPT_set_one, &monitor}, 367 gettext_noop ("display all egos"),
368 {'s', "set", "SUBSYSTEM", 368 &list),
369 gettext_noop ("set default identity to EGO for a subsystem SUBSYSTEM (use together with -e)"), 369
370 1, &GNUNET_GETOPT_set_string, &set_subsystem}, 370 GNUNET_GETOPT_OPTION_STRING ('e',
371 "ego",
372 "NAME",
373 gettext_noop ("set default identity to EGO for a subsystem SUBSYSTEM (use together with -s)"),
374 &set_ego),
375
376 GNUNET_GETOPT_OPTION_SET_ONE ('m',
377 "monitor",
378 gettext_noop ("run in monitor mode egos"),
379 &monitor),
380
381 GNUNET_GETOPT_OPTION_STRING ('s',
382 "set",
383 "SUBSYSTEM",
384 gettext_noop ("set default identity to EGO for a subsystem SUBSYSTEM (use together with -e)"),
385 &set_subsystem),
386
371 GNUNET_GETOPT_OPTION_END 387 GNUNET_GETOPT_OPTION_END
372 }; 388 };
373 int res; 389 int res;