+ static struct GNUNET_GETOPT_CommandLineOption options[] = {
+ {'C', "connections", "COUNT",
+ gettext_noop ("limit to the number of connections to NSE services, 0 for none"),
+ 1, &GNUNET_GETOPT_set_uint, &connection_limit},
+ {'d', "details", "FILENAME",
+ gettext_noop ("name of the file for writing connection information and statistics"),
+ 1, &GNUNET_GETOPT_set_string, &data_filename},
+ {'H', "hosts", "FILENAME",
+ gettext_noop ("name of the file with the login information for the testbed"),
+ 1, &GNUNET_GETOPT_set_string, &hosts_file},
+ {'o', "output", "FILENAME",
+ gettext_noop ("name of the file for writing the main results"),
+ 1, &GNUNET_GETOPT_set_string, &output_filename},
+ {'p', "peers", "NETWORKSIZESPEC",
+ gettext_noop ("Number of peers to run in each round, separated by commas"),
+ 1, &GNUNET_GETOPT_set_string, &num_peer_spec},
+ {'V', "verbose", NULL,
+ gettext_noop ("be verbose (print progress information)"),
+ 0, &GNUNET_GETOPT_increment_value, &verbose},
+ {'w', "wait", "DELAY",
+ gettext_noop ("delay between rounds"),
+ 1, &GNUNET_GETOPT_set_relative_time, &wait_time},
+ GNUNET_GETOPT_OPTION_END
+ };
+ if (GNUNET_OK != GNUNET_STRINGS_get_utf8_args (argc, argv, &argc, &argv))
+ return 2;
+ if (GNUNET_OK !=
+ GNUNET_PROGRAM_run (argc, argv, "nse-profiler",
+ gettext_noop
+ ("Measure quality and performance of the NSE service."),
+ options, &run, NULL))
+ ok = 1;