From 5a7cef0202631204485cbcb1e36671e4321a936f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 25 Mar 2017 21:25:44 +0100 Subject: rename GNUNET_GETOPT functions to achieve better consistency --- src/namestore/gnunet-namestore.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/namestore/gnunet-namestore.c') diff --git a/src/namestore/gnunet-namestore.c b/src/namestore/gnunet-namestore.c index 2ce3741f8..dcb9dd678 100644 --- a/src/namestore/gnunet-namestore.c +++ b/src/namestore/gnunet-namestore.c @@ -1132,45 +1132,45 @@ main (int argc, struct GNUNET_GETOPT_CommandLineOption options[] = { - GNUNET_GETOPT_OPTION_SET_ONE ('a', + GNUNET_GETOPT_option_flag ('a', "add", gettext_noop ("add record"), &add), - GNUNET_GETOPT_OPTION_SET_ONE ('d', + GNUNET_GETOPT_option_flag ('d', "delete", gettext_noop ("delete record"), &del), - GNUNET_GETOPT_OPTION_SET_ONE ('D', + GNUNET_GETOPT_option_flag ('D', "display", gettext_noop ("display records"), &list), - GNUNET_GETOPT_OPTION_STRING ('e', + GNUNET_GETOPT_option_string ('e', "expiration", "TIME", gettext_noop ("expiration time for record to use (for adding only), \"never\" is possible"), &expirationstring), - GNUNET_GETOPT_OPTION_STRING ('i', + GNUNET_GETOPT_option_string ('i', "nick", "NICKNAME", gettext_noop ("set the desired nick name for the zone"), &nickstring), - GNUNET_GETOPT_OPTION_SET_ONE ('m', + GNUNET_GETOPT_option_flag ('m', "monitor", gettext_noop ("monitor changes in the namestore"), &monitor), - GNUNET_GETOPT_OPTION_STRING ('n', + GNUNET_GETOPT_option_string ('n', "name", "NAME", gettext_noop ("name of the record to add/delete/display"), &name), - GNUNET_GETOPT_OPTION_STRING ('r', + GNUNET_GETOPT_option_string ('r', "reverse", "PKEY", gettext_noop ("determine our name for the given PKEY"), @@ -1178,35 +1178,35 @@ main (int argc, - GNUNET_GETOPT_OPTION_STRING ('t', + GNUNET_GETOPT_option_string ('t', "type", "TYPE", gettext_noop ("type of the record to add/delete/display"), &typestring), - GNUNET_GETOPT_OPTION_STRING ('u', + GNUNET_GETOPT_option_string ('u', "uri", "URI", gettext_noop ("URI to import into our zone"), &uri), - GNUNET_GETOPT_OPTION_STRING ('V', + GNUNET_GETOPT_option_string ('V', "value", "VALUE", gettext_noop ("value of the record to add/delete"), &value), - GNUNET_GETOPT_OPTION_SET_ONE ('p', + GNUNET_GETOPT_option_flag ('p', "public", gettext_noop ("create or list public record"), &is_public), - GNUNET_GETOPT_OPTION_SET_ONE ('s', + GNUNET_GETOPT_option_flag ('s', "shadow", gettext_noop ("create shadow record (only valid if all other records of the same type have expired"), &is_shadow), - GNUNET_GETOPT_OPTION_STRING ('z', + GNUNET_GETOPT_option_string ('z', "zone", "EGO", gettext_noop ("name of the ego controlling the zone"), -- cgit v1.2.3