diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-03-25 21:25:44 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-03-25 21:25:44 +0100 |
commit | 5a7cef0202631204485cbcb1e36671e4321a936f (patch) | |
tree | ff3d10ac71f9284f18be7c33939f3438071e15c4 /src/testing/gnunet-testing.c | |
parent | 2ad934742422ecb63fe3fafdc8c73d067a9e2fb7 (diff) | |
download | gnunet-5a7cef0202631204485cbcb1e36671e4321a936f.tar.gz gnunet-5a7cef0202631204485cbcb1e36671e4321a936f.zip |
rename GNUNET_GETOPT functions to achieve better consistency
Diffstat (limited to 'src/testing/gnunet-testing.c')
-rw-r--r-- | src/testing/gnunet-testing.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testing/gnunet-testing.c b/src/testing/gnunet-testing.c index 686b38192..3dbe65883 100644 --- a/src/testing/gnunet-testing.c +++ b/src/testing/gnunet-testing.c | |||
@@ -349,30 +349,30 @@ int | |||
349 | main (int argc, char *const *argv) | 349 | main (int argc, char *const *argv) |
350 | { | 350 | { |
351 | struct GNUNET_GETOPT_CommandLineOption options[] = { | 351 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
352 | GNUNET_GETOPT_OPTION_SET_ONE ('C', | 352 | GNUNET_GETOPT_option_flag ('C', |
353 | "cfg", | 353 | "cfg", |
354 | gettext_noop ("create unique configuration files"), | 354 | gettext_noop ("create unique configuration files"), |
355 | &create_cfg), | 355 | &create_cfg), |
356 | GNUNET_GETOPT_OPTION_STRING ('k', | 356 | GNUNET_GETOPT_option_string ('k', |
357 | "key", | 357 | "key", |
358 | "FILENAME", | 358 | "FILENAME", |
359 | gettext_noop ("extract hostkey file from pre-computed hostkey list"), | 359 | gettext_noop ("extract hostkey file from pre-computed hostkey list"), |
360 | &create_hostkey), | 360 | &create_hostkey), |
361 | 361 | ||
362 | GNUNET_GETOPT_OPTION_SET_UINT ('n', | 362 | GNUNET_GETOPT_option_uint ('n', |
363 | "number", | 363 | "number", |
364 | "NUMBER", | 364 | "NUMBER", |
365 | gettext_noop ("number of unique configuration files to create, or number of the hostkey to extract"), | 365 | gettext_noop ("number of unique configuration files to create, or number of the hostkey to extract"), |
366 | &create_no), | 366 | &create_no), |
367 | 367 | ||
368 | 368 | ||
369 | GNUNET_GETOPT_OPTION_STRING ('t', | 369 | GNUNET_GETOPT_option_string ('t', |
370 | "template", | 370 | "template", |
371 | "FILENAME", | 371 | "FILENAME", |
372 | gettext_noop ("configuration template"), | 372 | gettext_noop ("configuration template"), |
373 | &create_cfg_template), | 373 | &create_cfg_template), |
374 | 374 | ||
375 | GNUNET_GETOPT_OPTION_STRING ('r', | 375 | GNUNET_GETOPT_option_string ('r', |
376 | "run", | 376 | "run", |
377 | "SERVICE", | 377 | "SERVICE", |
378 | gettext_noop ("run the given service, wait on stdin for 'r' (restart) or 'q' (quit)"), | 378 | gettext_noop ("run the given service, wait on stdin for 'r' (restart) or 'q' (quit)"), |