aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/gnunet-namestore.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-03-03 22:32:58 +0100
committerChristian Grothoff <christian@grothoff.org>2018-03-03 22:32:58 +0100
commit92f24c2f42e84489160d7c8b94eeae9ec98207ed (patch)
tree8344f6eef9f00bd31936b3cd50ee2c5dca5c1b9b /src/namestore/gnunet-namestore.c
parent65377c3d9087635696f66b2444ef1d7eb39d4cd0 (diff)
downloadgnunet-92f24c2f42e84489160d7c8b94eeae9ec98207ed.tar.gz
gnunet-92f24c2f42e84489160d7c8b94eeae9ec98207ed.zip
update user-documentation to match new implementation
Diffstat (limited to 'src/namestore/gnunet-namestore.c')
-rw-r--r--src/namestore/gnunet-namestore.c62
1 files changed, 23 insertions, 39 deletions
diff --git a/src/namestore/gnunet-namestore.c b/src/namestore/gnunet-namestore.c
index 4f512713b..054417ab5 100644
--- a/src/namestore/gnunet-namestore.c
+++ b/src/namestore/gnunet-namestore.c
@@ -1127,97 +1127,81 @@ int
1127main (int argc, 1127main (int argc,
1128 char *const *argv) 1128 char *const *argv)
1129{ 1129{
1130 is_public = -1;
1131 is_shadow = -1;
1132
1133 struct GNUNET_GETOPT_CommandLineOption options[] = { 1130 struct GNUNET_GETOPT_CommandLineOption options[] = {
1134
1135 GNUNET_GETOPT_option_flag ('a', 1131 GNUNET_GETOPT_option_flag ('a',
1136 "add", 1132 "add",
1137 gettext_noop ("add record"), 1133 gettext_noop ("add record"),
1138 &add), 1134 &add),
1139
1140 GNUNET_GETOPT_option_flag ('d', 1135 GNUNET_GETOPT_option_flag ('d',
1141 "delete", 1136 "delete",
1142 gettext_noop ("delete record"), 1137 gettext_noop ("delete record"),
1143 &del), 1138 &del),
1144
1145 GNUNET_GETOPT_option_flag ('D', 1139 GNUNET_GETOPT_option_flag ('D',
1146 "display", 1140 "display",
1147 gettext_noop ("display records"), 1141 gettext_noop ("display records"),
1148 &list), 1142 &list),
1149
1150 GNUNET_GETOPT_option_string ('e', 1143 GNUNET_GETOPT_option_string ('e',
1151 "expiration", 1144 "expiration",
1152 "TIME", 1145 "TIME",
1153 gettext_noop ("expiration time for record to use (for adding only), \"never\" is possible"), 1146 gettext_noop ("expiration time for record to use (for adding only), \"never\" is possible"),
1154 &expirationstring), 1147 &expirationstring),
1155
1156 GNUNET_GETOPT_option_string ('i', 1148 GNUNET_GETOPT_option_string ('i',
1157 "nick", 1149 "nick",
1158 "NICKNAME", 1150 "NICKNAME",
1159 gettext_noop ("set the desired nick name for the zone"), 1151 gettext_noop ("set the desired nick name for the zone"),
1160 &nickstring), 1152 &nickstring),
1161
1162 GNUNET_GETOPT_option_flag ('m', 1153 GNUNET_GETOPT_option_flag ('m',
1163 "monitor", 1154 "monitor",
1164 gettext_noop ("monitor changes in the namestore"), 1155 gettext_noop ("monitor changes in the namestore"),
1165 &monitor), 1156 &monitor),
1166
1167 GNUNET_GETOPT_option_string ('n', 1157 GNUNET_GETOPT_option_string ('n',
1168 "name", 1158 "name",
1169 "NAME", 1159 "NAME",
1170 gettext_noop ("name of the record to add/delete/display"), 1160 gettext_noop ("name of the record to add/delete/display"),
1171 &name), 1161 &name),
1172
1173 GNUNET_GETOPT_option_string ('r', 1162 GNUNET_GETOPT_option_string ('r',
1174 "reverse", 1163 "reverse",
1175 "PKEY", 1164 "PKEY",
1176 gettext_noop ("determine our name for the given PKEY"), 1165 gettext_noop ("determine our name for the given PKEY"),
1177 &reverse_pkey), 1166 &reverse_pkey),
1178
1179
1180
1181 GNUNET_GETOPT_option_string ('t', 1167 GNUNET_GETOPT_option_string ('t',
1182 "type", 1168 "type",
1183 "TYPE", 1169 "TYPE",
1184 gettext_noop ("type of the record to add/delete/display"), 1170 gettext_noop ("type of the record to add/delete/display"),
1185 &typestring), 1171 &typestring),
1186
1187 GNUNET_GETOPT_option_string ('u', 1172 GNUNET_GETOPT_option_string ('u',
1188 "uri", 1173 "uri",
1189 "URI", 1174 "URI",
1190 gettext_noop ("URI to import into our zone"), 1175 gettext_noop ("URI to import into our zone"),
1191 &uri), 1176 &uri),
1192
1193 GNUNET_GETOPT_option_string ('V', 1177 GNUNET_GETOPT_option_string ('V',
1194 "value", 1178 "value",
1195 "VALUE", 1179 "VALUE",
1196 gettext_noop ("value of the record to add/delete"), 1180 gettext_noop ("value of the record to add/delete"),
1197 &value), 1181 &value),
1198
1199 GNUNET_GETOPT_option_flag ('p', 1182 GNUNET_GETOPT_option_flag ('p',
1200 "public", 1183 "public",
1201 gettext_noop ("create or list public record"), 1184 gettext_noop ("create or list public record"),
1202 &is_public), 1185 &is_public),
1203
1204 GNUNET_GETOPT_option_flag ('s', 1186 GNUNET_GETOPT_option_flag ('s',
1205 "shadow", 1187 "shadow",
1206 gettext_noop ("create shadow record (only valid if all other records of the same type have expired"), 1188 gettext_noop ("create shadow record (only valid if all other records of the same type have expired"),
1207 &is_shadow), 1189 &is_shadow),
1208
1209 GNUNET_GETOPT_option_string ('z', 1190 GNUNET_GETOPT_option_string ('z',
1210 "zone", 1191 "zone",
1211 "EGO", 1192 "EGO",
1212 gettext_noop ("name of the ego controlling the zone"), 1193 gettext_noop ("name of the ego controlling the zone"),
1213 &ego_name), 1194 &ego_name),
1214
1215 GNUNET_GETOPT_OPTION_END 1195 GNUNET_GETOPT_OPTION_END
1216 }; 1196 };
1217 1197
1218 if (GNUNET_OK != GNUNET_STRINGS_get_utf8_args (argc, argv, &argc, &argv)) 1198 if (GNUNET_OK !=
1199 GNUNET_STRINGS_get_utf8_args (argc, argv,
1200 &argc, &argv))
1219 return 2; 1201 return 2;
1220 1202
1203 is_public = -1;
1204 is_shadow = -1;
1221 GNUNET_log_setup ("gnunet-namestore", 1205 GNUNET_log_setup ("gnunet-namestore",
1222 "WARNING", 1206 "WARNING",
1223 NULL); 1207 NULL);