From: Florian Dold Date: Tue, 13 Aug 2013 21:05:30 +0000 (+0000) Subject: - bug in argument parsing X-Git-Tag: initial-import-from-subversion-38251~7864 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4c0d35b75913b66abfd69a4f1d76cd0000d1a9ec;p=oweals%2Fgnunet.git - bug in argument parsing --- diff --git a/src/testing/gnunet-testing-run-service.c b/src/testing/gnunet-testing-run-service.c index b58e6c27d..24b85a7e8 100644 --- a/src/testing/gnunet-testing-run-service.c +++ b/src/testing/gnunet-testing-run-service.c @@ -185,10 +185,10 @@ main (int argc, char *const *argv) static char *srv_name; static const struct GNUNET_GETOPT_CommandLineOption options[] = { {'c', "config", "FILENAME", - gettext_noop ("name of the template configuration file to use (optional)"), 1, + gettext_noop ("name of the template configuration file to use (optional)"), GNUNET_NO, &GNUNET_GETOPT_set_string, &cfg_name}, {'s', "service", "SERVICE", - gettext_noop ("name of the service to run"), 1, + gettext_noop ("name of the service to run"), GNUNET_YES, &GNUNET_GETOPT_set_string, &srv_name}, GNUNET_GETOPT_OPTION_HELP ("tool to start a service for testing"), GNUNET_GETOPT_OPTION_END @@ -196,7 +196,7 @@ main (int argc, char *const *argv) int ret; if (GNUNET_SYSERR == - GNUNET_GETOPT_run("gnunet-testing-run-service", options, argc, argv)) + GNUNET_GETOPT_run ("gnunet-testing-run-service", options, argc, argv)) return 1; ret = GNUNET_TESTING_service_run ("gnunet_service_test", srv_name, cfg_name, &testing_main, NULL);