diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2017-03-16 16:53:28 +0100 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2017-03-16 16:53:28 +0100 |
commit | 23dd95c65463bffdc46dc8e74a0b15eab568b9fd (patch) | |
tree | 9e9f654660de21d103b53f5efe00ac6aed93493a /src/identity-provider | |
parent | b92543a726e5f0df8c29788badae049923f3b35a (diff) | |
download | gnunet-23dd95c65463bffdc46dc8e74a0b15eab568b9fd.tar.gz gnunet-23dd95c65463bffdc46dc8e74a0b15eab568b9fd.zip |
Last commit as of getopt porting. 'social' still gives warnings.
Diffstat (limited to 'src/identity-provider')
-rw-r--r-- | src/identity-provider/gnunet-identity-token.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/identity-provider/gnunet-identity-token.c b/src/identity-provider/gnunet-identity-token.c index 4bb3292be..906899ea7 100644 --- a/src/identity-provider/gnunet-identity-token.c +++ b/src/identity-provider/gnunet-identity-token.c | |||
@@ -158,13 +158,18 @@ run (void *cls, | |||
158 | int | 158 | int |
159 | main(int argc, char *const argv[]) | 159 | main(int argc, char *const argv[]) |
160 | { | 160 | { |
161 | static const struct GNUNET_GETOPT_CommandLineOption options[] = { | 161 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
162 | {'t', "token", NULL, | 162 | |
163 | gettext_noop ("GNUid token"), 1, | 163 | GNUNET_GETOPT_OPTION_STRING ('t', |
164 | &GNUNET_GETOPT_set_string, &token}, | 164 | "token", |
165 | {'p', "print", NULL, | 165 | NULL, |
166 | gettext_noop ("Print token contents"), 0, | 166 | gettext_noop ("GNUid token"), |
167 | &GNUNET_GETOPT_set_one, &print_token}, | 167 | &token), |
168 | |||
169 | GNUNET_GETOPT_OPTION_SET_ONE ('p', | ||
170 | "print", | ||
171 | gettext_noop ("Print token contents"), | ||
172 | &print_token), | ||
168 | 173 | ||
169 | GNUNET_GETOPT_OPTION_END | 174 | GNUNET_GETOPT_OPTION_END |
170 | }; | 175 | }; |