aboutsummaryrefslogtreecommitdiff
path: root/src/util/getopt_helpers.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-03-29 12:34:33 +0000
committerChristian Grothoff <christian@grothoff.org>2012-03-29 12:34:33 +0000
commitcf4b1b4881e3dc2c4a9a4b908db05584b92f5456 (patch)
tree3959e7b41ff5fec257684a990c2fbcea5a49546e /src/util/getopt_helpers.c
parentffad59b491bb53819aa1ee258dc9dfb03f874cec (diff)
downloadgnunet-cf4b1b4881e3dc2c4a9a4b908db05584b92f5456.tar.gz
gnunet-cf4b1b4881e3dc2c4a9a4b908db05584b92f5456.zip
-fix printing
Diffstat (limited to 'src/util/getopt_helpers.c')
-rw-r--r--src/util/getopt_helpers.c9
1 files changed, 6 insertions, 3 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)