diff options
author | Florian Dold <florian.dold@gmail.com> | 2013-08-13 21:05:30 +0000 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2013-08-13 21:05:30 +0000 |
commit | 4c0d35b75913b66abfd69a4f1d76cd0000d1a9ec (patch) | |
tree | 2e78c910af01bb2b7d985c73bc3b757b08b6a1ce | |
parent | c2c0aeb315b40ac551ee2ef2ad2ffd37f2b662fb (diff) | |
download | gnunet-4c0d35b75913b66abfd69a4f1d76cd0000d1a9ec.tar.gz gnunet-4c0d35b75913b66abfd69a4f1d76cd0000d1a9ec.zip |
- bug in argument parsing
-rw-r--r-- | src/testing/gnunet-testing-run-service.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) | |||
185 | static char *srv_name; | 185 | static char *srv_name; |
186 | static const struct GNUNET_GETOPT_CommandLineOption options[] = { | 186 | static const struct GNUNET_GETOPT_CommandLineOption options[] = { |
187 | {'c', "config", "FILENAME", | 187 | {'c', "config", "FILENAME", |
188 | gettext_noop ("name of the template configuration file to use (optional)"), 1, | 188 | gettext_noop ("name of the template configuration file to use (optional)"), GNUNET_NO, |
189 | &GNUNET_GETOPT_set_string, &cfg_name}, | 189 | &GNUNET_GETOPT_set_string, &cfg_name}, |
190 | {'s', "service", "SERVICE", | 190 | {'s', "service", "SERVICE", |
191 | gettext_noop ("name of the service to run"), 1, | 191 | gettext_noop ("name of the service to run"), GNUNET_YES, |
192 | &GNUNET_GETOPT_set_string, &srv_name}, | 192 | &GNUNET_GETOPT_set_string, &srv_name}, |
193 | GNUNET_GETOPT_OPTION_HELP ("tool to start a service for testing"), | 193 | GNUNET_GETOPT_OPTION_HELP ("tool to start a service for testing"), |
194 | GNUNET_GETOPT_OPTION_END | 194 | GNUNET_GETOPT_OPTION_END |
@@ -196,7 +196,7 @@ main (int argc, char *const *argv) | |||
196 | int ret; | 196 | int ret; |
197 | 197 | ||
198 | if (GNUNET_SYSERR == | 198 | if (GNUNET_SYSERR == |
199 | GNUNET_GETOPT_run("gnunet-testing-run-service", options, argc, argv)) | 199 | GNUNET_GETOPT_run ("gnunet-testing-run-service", options, argc, argv)) |
200 | return 1; | 200 | return 1; |
201 | ret = GNUNET_TESTING_service_run ("gnunet_service_test", srv_name, | 201 | ret = GNUNET_TESTING_service_run ("gnunet_service_test", srv_name, |
202 | cfg_name, &testing_main, NULL); | 202 | cfg_name, &testing_main, NULL); |