diff options
-rw-r--r-- | src/util/getopt_helpers.c | 9 | ||||
-rw-r--r-- | src/util/service.c | 2 |
2 files changed, 7 insertions, 4 deletions
diff --git a/src/util/getopt_helpers.c b/src/util/getopt_helpers.c index 8fb3673c0..a31080fa0 100644 --- a/src/util/getopt_helpers.c +++ b/src/util/getopt_helpers.c | |||
@@ -79,9 +79,12 @@ GNUNET_GETOPT_format_help_ (struct GNUNET_GETOPT_CommandLineProcessorContext | |||
79 | const char *trans; | 79 | const char *trans; |
80 | const struct GNUNET_GETOPT_CommandLineOption *opt; | 80 | const struct GNUNET_GETOPT_CommandLineOption *opt; |
81 | 81 | ||
82 | printf ("%s\n%s\n", ctx->binaryOptions, gettext (about)); | 82 | if (NULL != about) |
83 | printf (_ | 83 | { |
84 | ("Arguments mandatory for long options are also mandatory for short options.\n")); | 84 | printf ("%s\n%s\n", ctx->binaryOptions, gettext (about)); |
85 | printf (_ | ||
86 | ("Arguments mandatory for long options are also mandatory for short options.\n")); | ||
87 | } | ||
85 | i = 0; | 88 | i = 0; |
86 | opt = ctx->allOptions; | 89 | opt = ctx->allOptions; |
87 | while (opt[i].description != NULL) | 90 | while (opt[i].description != NULL) |
diff --git a/src/util/service.c b/src/util/service.c index 34d676137..c749c8b81 100644 --- a/src/util/service.c +++ b/src/util/service.c | |||
@@ -1657,7 +1657,7 @@ GNUNET_SERVICE_run (int argc, char *const *argv, const char *serviceName, | |||
1657 | {'d', "daemonize", NULL, | 1657 | {'d', "daemonize", NULL, |
1658 | gettext_noop ("do daemonize (detach from terminal)"), 0, | 1658 | gettext_noop ("do daemonize (detach from terminal)"), 0, |
1659 | GNUNET_GETOPT_set_one, &do_daemonize}, | 1659 | GNUNET_GETOPT_set_one, &do_daemonize}, |
1660 | GNUNET_GETOPT_OPTION_HELP (serviceName), | 1660 | GNUNET_GETOPT_OPTION_HELP (NULL), |
1661 | GNUNET_GETOPT_OPTION_LOGLEVEL (&loglev), | 1661 | GNUNET_GETOPT_OPTION_LOGLEVEL (&loglev), |
1662 | GNUNET_GETOPT_OPTION_LOGFILE (&logfile), | 1662 | GNUNET_GETOPT_OPTION_LOGFILE (&logfile), |
1663 | GNUNET_GETOPT_OPTION_VERSION (PACKAGE_VERSION), | 1663 | GNUNET_GETOPT_OPTION_VERSION (PACKAGE_VERSION), |