summaryrefslogtreecommitdiff
path: root/src/fs/gnunet-publish.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-03-25 21:25:44 +0100
committerChristian Grothoff <christian@grothoff.org>2017-03-25 21:25:44 +0100
commit5a7cef0202631204485cbcb1e36671e4321a936f (patch)
treeff3d10ac71f9284f18be7c33939f3438071e15c4 /src/fs/gnunet-publish.c
parent2ad934742422ecb63fe3fafdc8c73d067a9e2fb7 (diff)
rename GNUNET_GETOPT functions to achieve better consistency
Diffstat (limited to 'src/fs/gnunet-publish.c')
-rw-r--r--src/fs/gnunet-publish.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/fs/gnunet-publish.c b/src/fs/gnunet-publish.c
index 2229e45e7..395aad7db 100644
--- a/src/fs/gnunet-publish.c
+++ b/src/fs/gnunet-publish.c
@@ -894,24 +894,24 @@ int
main (int argc, char *const *argv)
{
struct GNUNET_GETOPT_CommandLineOption options[] = {
- GNUNET_GETOPT_OPTION_SET_UINT ('a',
+ GNUNET_GETOPT_option_uint ('a',
"anonymity",
"LEVEL",
gettext_noop ("set the desired LEVEL of sender-anonymity"),
&bo.anonymity_level),
- GNUNET_GETOPT_OPTION_SET_ONE ('d',
+ GNUNET_GETOPT_option_flag ('d',
"disable-creation-time",
gettext_noop ("disable adding the creation time to the "
"metadata of the uploaded file"),
&do_disable_creation_time),
- GNUNET_GETOPT_OPTION_SET_ONE ('D',
+ GNUNET_GETOPT_option_flag ('D',
"disable-extractor",
gettext_noop ("do not use libextractor to add keywords or metadata"),
&disable_extractor),
- GNUNET_GETOPT_OPTION_SET_ONE ('e',
+ GNUNET_GETOPT_option_flag ('e',
"extract",
gettext_noop ("print list of extracted keywords that would "
"be used, but do not perform upload"),
@@ -930,60 +930,60 @@ main (int argc, char *const *argv)
gettext_noop ("set the meta-data for the given TYPE to the given VALUE"),
&meta),
- GNUNET_GETOPT_OPTION_SET_ONE ('n',
+ GNUNET_GETOPT_option_flag ('n',
"noindex",
gettext_noop ("do not index, perform full insertion (stores "
"entire file in encrypted form in GNUnet database)"),
&do_insert),
- GNUNET_GETOPT_OPTION_STRING ('N',
+ GNUNET_GETOPT_option_string ('N',
"next",
"ID",
gettext_noop ("specify ID of an updated version to be "
"published in the future (for namespace insertions only)"),
&next_id),
- GNUNET_GETOPT_OPTION_SET_UINT ('p',
+ GNUNET_GETOPT_option_uint ('p',
"priority",
"PRIORITY",
gettext_noop ("specify the priority of the content"),
&bo.content_priority),
- GNUNET_GETOPT_OPTION_STRING ('P',
+ GNUNET_GETOPT_option_string ('P',
"pseudonym",
"NAME",
gettext_noop ("publish the files under the pseudonym "
"NAME (place file into namespace)"),
&pseudonym),
- GNUNET_GETOPT_OPTION_SET_UINT ('r',
+ GNUNET_GETOPT_option_uint ('r',
"replication",
"LEVEL",
gettext_noop ("set the desired replication LEVEL"),
&bo.replication_level),
- GNUNET_GETOPT_OPTION_SET_ONE ('s',
+ GNUNET_GETOPT_option_flag ('s',
"simulate-only",
gettext_noop ("only simulate the process but do not do "
"any actual publishing (useful to compute URIs)"),
&do_simulate),
- GNUNET_GETOPT_OPTION_STRING ('t',
+ GNUNET_GETOPT_option_string ('t',
"this",
"ID",
gettext_noop ("set the ID of this version of the publication "
"(for namespace insertions only)"),
&this_id),
- GNUNET_GETOPT_OPTION_STRING ('u',
+ GNUNET_GETOPT_option_string ('u',
"uri",
"URI",
gettext_noop ("URI to be published (can be used instead of passing a "
"file to add keywords to the file with the respective URI)"),
&uri_string),
- GNUNET_GETOPT_OPTION_VERBOSE (&verbose),
+ GNUNET_GETOPT_option_verbose (&verbose),
GNUNET_GETOPT_OPTION_END
};