diff options
Diffstat (limited to 'src/testbed/gnunet-testbed-profiler.c')
-rw-r--r-- | src/testbed/gnunet-testbed-profiler.c | 43 |
1 files changed, 27 insertions, 16 deletions
diff --git a/src/testbed/gnunet-testbed-profiler.c b/src/testbed/gnunet-testbed-profiler.c index 9468b3c91..29f77193d 100644 --- a/src/testbed/gnunet-testbed-profiler.c +++ b/src/testbed/gnunet-testbed-profiler.c | |||
@@ -276,23 +276,34 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
276 | int | 276 | int |
277 | main (int argc, char *const *argv) | 277 | main (int argc, char *const *argv) |
278 | { | 278 | { |
279 | static const struct GNUNET_GETOPT_CommandLineOption options[] = { | 279 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
280 | {'p', "num-peers", "COUNT", | 280 | |
281 | gettext_noop ("create COUNT number of peers"), | 281 | GNUNET_GETOPT_OPTION_SET_UINT ('p', |
282 | GNUNET_YES, &GNUNET_GETOPT_set_uint, &num_peers}, | 282 | "num-peers", |
283 | {'e', "num-errors", "COUNT", | 283 | "COUNT", |
284 | gettext_noop ("tolerate COUNT number of continious timeout failures"), | 284 | gettext_noop ("create COUNT number of peers"), |
285 | GNUNET_YES, &GNUNET_GETOPT_set_uint, &num_cont_fails}, | 285 | &num_peers), |
286 | {'n', "non-interactive", NULL, | 286 | |
287 | gettext_noop ("run profiler in non-interactive mode where upon " | 287 | GNUNET_GETOPT_OPTION_SET_UINT ('e', |
288 | "testbed setup the profiler does not wait for a " | 288 | "num-errors", |
289 | "keystroke but continues to run until a termination " | 289 | "COUNT", |
290 | "signal is received"), | 290 | gettext_noop ("tolerate COUNT number of continious timeout failures"), |
291 | GNUNET_NO, &GNUNET_GETOPT_set_one, &noninteractive}, | 291 | &num_cont_fails), |
292 | |||
293 | GNUNET_GETOPT_OPTION_SET_ONE ('n', | ||
294 | "non-interactive", | ||
295 | gettext_noop ("run profiler in non-interactive mode where upon " | ||
296 | "testbed setup the profiler does not wait for a " | ||
297 | "keystroke but continues to run until a termination " | ||
298 | "signal is received"), | ||
299 | &noninteractive), | ||
300 | |||
292 | #if !ENABLE_SUPERMUC | 301 | #if !ENABLE_SUPERMUC |
293 | {'H', "hosts", "FILENAME", | 302 | GNUNET_GETOPT_OPTION_STRING ('H', |
294 | gettext_noop ("name of the file with the login information for the testbed"), | 303 | "hosts", |
295 | GNUNET_YES, &GNUNET_GETOPT_set_string, &hosts_file}, | 304 | "FILENAME", |
305 | gettext_noop ("name of the file with the login information for the testbed"), | ||
306 | &hosts_file), | ||
296 | #endif | 307 | #endif |
297 | GNUNET_GETOPT_OPTION_END | 308 | GNUNET_GETOPT_OPTION_END |
298 | }; | 309 | }; |