Pārlūkot izejas kodu

Renamed some list command line options.

create_list to list_create delete_list to list_delete.
grunfink 1 gadu atpakaļ
vecāks
revīzija
e1fb414ffd
1 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 4 4
      main.c

+ 4 - 4
main.c

@@ -66,8 +66,8 @@ int usage(const char *cmd)
         "import_block_list {basedir} {uid} {file} Imports a Mastodon CSV block list file\n"
         "import_block_list {basedir} {uid} {file} Imports a Mastodon CSV block list file\n"
         "lists {basedir} {uid}                Returns the names of the lists created by the user\n"
         "lists {basedir} {uid}                Returns the names of the lists created by the user\n"
         "list_members {basedir} {uid} {name}  Returns the list of accounts inside a list\n"
         "list_members {basedir} {uid} {name}  Returns the list of accounts inside a list\n"
-        "create_list {basedir} {uid} {name}   Creates a new list\n"
-        "delete_list {basedir} {uid} {name}   Deletes an existing list\n"
+        "list_create {basedir} {uid} {name}   Creates a new list\n"
+        "list_delete {basedir} {uid} {name}   Deletes an existing list\n"
         "list_add {basedir} {uid} {name} {acct} Adds an account (@user@host or actor url) to a list\n"
         "list_add {basedir} {uid} {name} {acct} Adds an account (@user@host or actor url) to a list\n"
         "list_del {basedir} {uid} {name} {actor} Deletes an actor URL from a list\n";
         "list_del {basedir} {uid} {name} {actor} Deletes an actor URL from a list\n";
 
 
@@ -352,7 +352,7 @@ int main(int argc, char *argv[])
         return 0;
         return 0;
     }
     }
 
 
-    if (strcmp(cmd, "create_list") == 0) { /** **/
+    if (strcmp(cmd, "list_create") == 0) { /** **/
         xs *lid = list_maint(&snac, url, 4);
         xs *lid = list_maint(&snac, url, 4);
 
 
         if (lid == NULL) {
         if (lid == NULL) {
@@ -365,7 +365,7 @@ int main(int argc, char *argv[])
         return 0;
         return 0;
     }
     }
 
 
-    if (strcmp(cmd, "delete_list") == 0) { /** **/
+    if (strcmp(cmd, "list_delete") == 0) { /** **/
         xs *lid = list_maint(&snac, url, 4);
         xs *lid = list_maint(&snac, url, 4);
 
 
         if (lid != NULL) {
         if (lid != NULL) {