From 455cc81ba051b0b97095e3fbdf3dacfbacb51ae9 Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Thu, 11 Apr 2019 21:21:06 +0200 Subject: [PATCH] RECLAIM: improve help --- src/Makefile.am | 14 ++++++-------- src/reclaim/Makefile.am | 24 ++++++++++++------------ src/reclaim/gnunet-reclaim.c | 30 +++++++++++++++--------------- 3 files changed, 33 insertions(+), 35 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index c1c708aa6..b16792e15 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -11,19 +11,17 @@ endif if HAVE_EXPERIMENTAL EXP_DIR = \ - rps + rps \ + credential \ + reclaim-attribute \ + reclaim if HAVE_ABE -if HAVE_JSON EXP_DIR += \ - abe \ - credential \ - reclaim-attribute \ - reclaim -endif + abe \ endif if HAVE_JSON EXP_DIR += \ - auction + auction endif endif diff --git a/src/reclaim/Makefile.am b/src/reclaim/Makefile.am index bea8cd38e..210759fce 100644 --- a/src/reclaim/Makefile.am +++ b/src/reclaim/Makefile.am @@ -99,7 +99,7 @@ libgnunet_plugin_reclaim_sqlite_la_LIBADD = \ libgnunetreclaim.la \ $(top_builddir)/src/sq/libgnunetsq.la \ $(top_builddir)/src/statistics/libgnunetstatistics.la \ - $(top_builddir)/src/reclaim-attribute/libgnunetreclaimattribute.la \ + $(top_builddir)/src/reclaim-attribute/libgnunetreclaimattribute.la \ $(top_builddir)/src/util/libgnunetutil.la $(XLIBS) -lsqlite3 \ $(LTLIBINTL) libgnunet_plugin_reclaim_sqlite_la_LDFLAGS = \ @@ -126,26 +126,26 @@ libgnunetreclaim_la_SOURCES = \ reclaim.h libgnunetreclaim_la_LIBADD = \ $(top_builddir)/src/util/libgnunetutil.la \ - $(top_builddir)/src/reclaim-attribute/libgnunetreclaimattribute.la \ - $(GN_LIBINTL) $(XLIB) + $(top_builddir)/src/reclaim-attribute/libgnunetreclaimattribute.la \ + $(GN_LIBINTL) $(XLIB) libgnunetreclaim_la_LDFLAGS = \ - $(GN_LIB_LDFLAGS) $(WINFLAGS) \ - -version-info 0:0:0 + $(GN_LIB_LDFLAGS) $(WINFLAGS) \ + -version-info 0:0:0 gnunet_reclaim_SOURCES = \ gnunet-reclaim.c gnunet_reclaim_LDADD = \ $(top_builddir)/src/util/libgnunetutil.la \ - $(top_builddir)/src/namestore/libgnunetnamestore.la \ - libgnunetreclaim.la \ - $(top_builddir)/src/identity/libgnunetidentity.la \ - $(top_builddir)/src/reclaim-attribute/libgnunetreclaimattribute.la \ + $(top_builddir)/src/namestore/libgnunetnamestore.la \ + libgnunetreclaim.la \ + $(top_builddir)/src/identity/libgnunetidentity.la \ + $(top_builddir)/src/reclaim-attribute/libgnunetreclaimattribute.la \ $(GN_LIBINTL) check_SCRIPTS = \ - test_reclaim_attribute.sh \ - test_reclaim_issue.sh \ - test_reclaim_consume.sh \ + test_reclaim_attribute.sh \ + test_reclaim_issue.sh \ + test_reclaim_consume.sh \ test_reclaim_revoke.sh if ENABLE_TEST_RUN diff --git a/src/reclaim/gnunet-reclaim.c b/src/reclaim/gnunet-reclaim.c index b10586feb..df6ebc66f 100644 --- a/src/reclaim/gnunet-reclaim.c +++ b/src/reclaim/gnunet-reclaim.c @@ -505,52 +505,52 @@ main(int argc, char *const argv[]) GNUNET_GETOPT_option_string ('a', "add", - NULL, - gettext_noop ("Add attribute"), + "NAME", + gettext_noop ("Add an attribute NAME"), &attr_name), GNUNET_GETOPT_option_string ('V', "value", - NULL, - gettext_noop ("Attribute value"), + "VALUE", + gettext_noop ("The attribute VALUE"), &attr_value), GNUNET_GETOPT_option_string ('e', "ego", - NULL, - gettext_noop ("Ego"), + "EGO", + gettext_noop ("The EGO to use"), &ego_name), GNUNET_GETOPT_option_string ('r', "rp", - NULL, - gettext_noop ("Audience (relying party)"), + "RP", + gettext_noop ("Specify the relying party for issue"), &rp), GNUNET_GETOPT_option_flag ('D', "dump", - gettext_noop ("List attributes for Ego"), + gettext_noop ("List attributes for EGO"), &list), GNUNET_GETOPT_option_string ('i', "issue", - NULL, - gettext_noop ("Issue a ticket"), + "A1,A2,...", + gettext_noop ("Issue a ticket for a set of attributes separated by comma"), &issue_attrs), GNUNET_GETOPT_option_string ('C', "consume", - NULL, + "TICKET", gettext_noop ("Consume a ticket"), &consume_ticket), GNUNET_GETOPT_option_string ('R', "revoke", - NULL, + "TICKET", gettext_noop ("Revoke a ticket"), &revoke_ticket), GNUNET_GETOPT_option_string ('t', "type", - NULL, + "TYPE", gettext_noop ("Type of attribute"), &type_str), GNUNET_GETOPT_option_relative_time ('E', "expiration", - NULL, + "INTERVAL", gettext_noop ("Expiration interval of the attribute"), &exp_interval), -- 2.25.1