diff options
Diffstat (limited to 'src/scalarproduct/gnunet-scalarproduct.c')
-rw-r--r-- | src/scalarproduct/gnunet-scalarproduct.c | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/src/scalarproduct/gnunet-scalarproduct.c b/src/scalarproduct/gnunet-scalarproduct.c index aa894b61d..5d0fce2b1 100644 --- a/src/scalarproduct/gnunet-scalarproduct.c +++ b/src/scalarproduct/gnunet-scalarproduct.c | |||
@@ -343,16 +343,32 @@ run (void *cls, | |||
343 | int | 343 | int |
344 | main (int argc, char *const *argv) | 344 | main (int argc, char *const *argv) |
345 | { | 345 | { |
346 | static const struct GNUNET_GETOPT_CommandLineOption options[] = { | 346 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
347 | {'e', "elements", "\"key1,val1;key2,val2;...,keyn,valn;\"", | 347 | |
348 | gettext_noop ("A comma separated list of elements to compare as vector with our remote peer."), | 348 | GNUNET_GETOPT_OPTION_STRING ('e', |
349 | 1, &GNUNET_GETOPT_set_string, &input_elements}, | 349 | "elements", |
350 | {'p', "peer", "PEERID", | 350 | "\"key1,val1;key2,val2;...,keyn,valn;\"", |
351 | gettext_noop ("[Optional] peer to calculate our scalarproduct with. If this parameter is not given, the service will wait for a remote peer to compute the request."), | 351 | gettext_noop ("A comma separated list of elements to compare as vector with our remote peer."), |
352 | 1, &GNUNET_GETOPT_set_string, &input_peer_id}, | 352 | &input_elements), |
353 | {'k', "key", "TRANSACTION_ID", | 353 | |
354 | gettext_noop ("Transaction ID shared with peer."), | 354 | GNUNET_GETOPT_OPTION_STRING ('e', |
355 | 1, &GNUNET_GETOPT_set_string, &input_session_key}, | 355 | "elements", |
356 | "\"key1,val1;key2,val2;...,keyn,valn;\"", | ||
357 | gettext_noop ("A comma separated list of elements to compare as vector with our remote peer."), | ||
358 | &input_elements), | ||
359 | |||
360 | GNUNET_GETOPT_OPTION_STRING ('p', | ||
361 | "peer", | ||
362 | "PEERID", | ||
363 | gettext_noop ("[Optional] peer to calculate our scalarproduct with. If this parameter is not given, the service will wait for a remote peer to compute the request."), | ||
364 | &input_peer_id), | ||
365 | |||
366 | GNUNET_GETOPT_OPTION_STRING ('k', | ||
367 | "key", | ||
368 | "TRANSACTION_ID", | ||
369 | gettext_noop ("Transaction ID shared with peer."), | ||
370 | &input_session_key), | ||
371 | |||
356 | GNUNET_GETOPT_OPTION_END | 372 | GNUNET_GETOPT_OPTION_END |
357 | }; | 373 | }; |
358 | 374 | ||