diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-04-07 20:54:53 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-04-07 20:54:53 +0000 |
commit | ed28dd2141e77aa073d81089cb5a07e0a0fc013c (patch) | |
tree | 51caa9ce91662983b6f44fdd3f0a0045a1bf2b32 /src/util/getopt_helpers.c | |
parent | 69667eaa594670ae1bb209fda2761798426ec7b1 (diff) | |
download | gnunet-ed28dd2141e77aa073d81089cb5a07e0a0fc013c.tar.gz gnunet-ed28dd2141e77aa073d81089cb5a07e0a0fc013c.zip |
expand GNUNET_OS_ProjectData API to also enable de-duplcation of logic for --help
Diffstat (limited to 'src/util/getopt_helpers.c')
-rw-r--r-- | src/util/getopt_helpers.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/util/getopt_helpers.c b/src/util/getopt_helpers.c index 176dc3fe1..5a0bf0565 100644 --- a/src/util/getopt_helpers.c +++ b/src/util/getopt_helpers.c | |||
@@ -82,6 +82,7 @@ GNUNET_GETOPT_format_help_ (struct GNUNET_GETOPT_CommandLineProcessorContext *ct | |||
82 | char *scp; | 82 | char *scp; |
83 | const char *trans; | 83 | const char *trans; |
84 | const struct GNUNET_GETOPT_CommandLineOption *opt; | 84 | const struct GNUNET_GETOPT_CommandLineOption *opt; |
85 | const struct GNUNET_OS_ProjectData *pd; | ||
85 | 86 | ||
86 | if (NULL != about) | 87 | if (NULL != about) |
87 | { | 88 | { |
@@ -153,9 +154,12 @@ OUTER: | |||
153 | printf ("\n"); | 154 | printf ("\n"); |
154 | i++; | 155 | i++; |
155 | } | 156 | } |
156 | printf ("Report bugs to gnunet-developers@gnu.org.\n" | 157 | pd = GNUNET_OS_project_data_get (); |
157 | "GNUnet home page: http://www.gnu.org/software/gnunet/\n" | 158 | printf ("Report bugs to %s.\n" |
158 | "General help using GNU software: http://www.gnu.org/gethelp/\n"); | 159 | "GNUnet home page: %s\n" |
160 | "General help using GNU software: http://www.gnu.org/gethelp/\n", | ||
161 | pd->bug_email, | ||
162 | pd->homepage); | ||
159 | return GNUNET_NO; | 163 | return GNUNET_NO; |
160 | } | 164 | } |
161 | 165 | ||