aboutsummaryrefslogtreecommitdiff
path: root/src/scalarproduct/gnunet-scalarproduct.c
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2017-03-16 15:26:57 +0100
committerMarcello Stanisci <marcello.stanisci@inria.fr>2017-03-16 15:26:57 +0100
commit1c4f90e7c538f1489ea17be3d2f655c2390d7ccf (patch)
tree9a8dc8245d1ffe456076cc8612754d0d9dd7298f /src/scalarproduct/gnunet-scalarproduct.c
parent04a46ba5acf180be6f3a7d85cd6f6ce0ff13b1ba (diff)
downloadgnunet-1c4f90e7c538f1489ea17be3d2f655c2390d7ccf.tar.gz
gnunet-1c4f90e7c538f1489ea17be3d2f655c2390d7ccf.zip
porting gnunet-publish + others..
Diffstat (limited to 'src/scalarproduct/gnunet-scalarproduct.c')
-rw-r--r--src/scalarproduct/gnunet-scalarproduct.c29
1 files changed, 19 insertions, 10 deletions
diff --git a/src/scalarproduct/gnunet-scalarproduct.c b/src/scalarproduct/gnunet-scalarproduct.c
index 773283959..5d0fce2b1 100644
--- a/src/scalarproduct/gnunet-scalarproduct.c
+++ b/src/scalarproduct/gnunet-scalarproduct.c
@@ -343,7 +343,7 @@ run (void *cls,
343int 343int
344main (int argc, char *const *argv) 344main (int argc, char *const *argv)
345{ 345{
346 static const struct GNUNET_GETOPT_CommandLineOption options[] = { 346 struct GNUNET_GETOPT_CommandLineOption options[] = {
347 347
348 GNUNET_GETOPT_OPTION_STRING ('e', 348 GNUNET_GETOPT_OPTION_STRING ('e',
349 "elements", 349 "elements",
@@ -351,15 +351,24 @@ main (int argc, char *const *argv)
351 gettext_noop ("A comma separated list of elements to compare as vector with our remote peer."), 351 gettext_noop ("A comma separated list of elements to compare as vector with our remote peer."),
352 &input_elements), 352 &input_elements),
353 353
354 {'e', "elements", "\"key1,val1;key2,val2;...,keyn,valn;\"", 354 GNUNET_GETOPT_OPTION_STRING ('e',
355 gettext_noop ("A comma separated list of elements to compare as vector with our remote peer."), 355 "elements",
356 1, &GNUNET_GETOPT_set_string, &input_elements}, 356 "\"key1,val1;key2,val2;...,keyn,valn;\"",
357 {'p', "peer", "PEERID", 357 gettext_noop ("A comma separated list of elements to compare as vector with our remote peer."),
358 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."), 358 &input_elements),
359 1, &GNUNET_GETOPT_set_string, &input_peer_id}, 359
360 {'k', "key", "TRANSACTION_ID", 360 GNUNET_GETOPT_OPTION_STRING ('p',
361 gettext_noop ("Transaction ID shared with peer."), 361 "peer",
362 1, &GNUNET_GETOPT_set_string, &input_session_key}, 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
363 GNUNET_GETOPT_OPTION_END 372 GNUNET_GETOPT_OPTION_END
364 }; 373 };
365 374