commit e1fb414
grunfink
·
2025-06-15 07:43:42 +0000 UTC
parent 2cba505
Renamed some list command line options. create_list to list_create delete_list to list_delete.
1 files changed,
+4,
-4
M
main.c
M
main.c
+4,
-4
1@@ -66,8 +66,8 @@ int usage(const char *cmd)
2 "import_block_list {basedir} {uid} {file} Imports a Mastodon CSV block list file\n"
3 "lists {basedir} {uid} Returns the names of the lists created by the user\n"
4 "list_members {basedir} {uid} {name} Returns the list of accounts inside a list\n"
5- "create_list {basedir} {uid} {name} Creates a new list\n"
6- "delete_list {basedir} {uid} {name} Deletes an existing list\n"
7+ "list_create {basedir} {uid} {name} Creates a new list\n"
8+ "list_delete {basedir} {uid} {name} Deletes an existing list\n"
9 "list_add {basedir} {uid} {name} {acct} Adds an account (@user@host or actor url) to a list\n"
10 "list_del {basedir} {uid} {name} {actor} Deletes an actor URL from a list\n";
11
12@@ -352,7 +352,7 @@ int main(int argc, char *argv[])
13 return 0;
14 }
15
16- if (strcmp(cmd, "create_list") == 0) { /** **/
17+ if (strcmp(cmd, "list_create") == 0) { /** **/
18 xs *lid = list_maint(&snac, url, 4);
19
20 if (lid == NULL) {
21@@ -365,7 +365,7 @@ int main(int argc, char *argv[])
22 return 0;
23 }
24
25- if (strcmp(cmd, "delete_list") == 0) { /** **/
26+ if (strcmp(cmd, "list_delete") == 0) { /** **/
27 xs *lid = list_maint(&snac, url, 4);
28
29 if (lid != NULL) {