diff options
| author | 2025-06-15 09:43:42 +0200 | |
|---|---|---|
| committer | 2025-06-15 09:43:42 +0200 | |
| commit | e1fb414ffd4c46f51903f48ade7b399c0f5de9bb (patch) | |
| tree | 9ed5cb68fcf0903758d627bc8f06935c684a5c2a /main.c | |
| parent | Updated RELEASE_NOTES. (diff) | |
| download | snac2-e1fb414ffd4c46f51903f48ade7b399c0f5de9bb.tar.gz snac2-e1fb414ffd4c46f51903f48ade7b399c0f5de9bb.tar.xz snac2-e1fb414ffd4c46f51903f48ade7b399c0f5de9bb.zip | |
Renamed some list command line options.
create_list to list_create delete_list to list_delete.
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -66,8 +66,8 @@ int usage(const char *cmd) | |||
| 66 | "import_block_list {basedir} {uid} {file} Imports a Mastodon CSV block list file\n" | 66 | "import_block_list {basedir} {uid} {file} Imports a Mastodon CSV block list file\n" |
| 67 | "lists {basedir} {uid} Returns the names of the lists created by the user\n" | 67 | "lists {basedir} {uid} Returns the names of the lists created by the user\n" |
| 68 | "list_members {basedir} {uid} {name} Returns the list of accounts inside a list\n" | 68 | "list_members {basedir} {uid} {name} Returns the list of accounts inside a list\n" |
| 69 | "create_list {basedir} {uid} {name} Creates a new list\n" | 69 | "list_create {basedir} {uid} {name} Creates a new list\n" |
| 70 | "delete_list {basedir} {uid} {name} Deletes an existing list\n" | 70 | "list_delete {basedir} {uid} {name} Deletes an existing list\n" |
| 71 | "list_add {basedir} {uid} {name} {acct} Adds an account (@user@host or actor url) to a list\n" | 71 | "list_add {basedir} {uid} {name} {acct} Adds an account (@user@host or actor url) to a list\n" |
| 72 | "list_del {basedir} {uid} {name} {actor} Deletes an actor URL from a list\n"; | 72 | "list_del {basedir} {uid} {name} {actor} Deletes an actor URL from a list\n"; |
| 73 | 73 | ||
| @@ -352,7 +352,7 @@ int main(int argc, char *argv[]) | |||
| 352 | return 0; | 352 | return 0; |
| 353 | } | 353 | } |
| 354 | 354 | ||
| 355 | if (strcmp(cmd, "create_list") == 0) { /** **/ | 355 | if (strcmp(cmd, "list_create") == 0) { /** **/ |
| 356 | xs *lid = list_maint(&snac, url, 4); | 356 | xs *lid = list_maint(&snac, url, 4); |
| 357 | 357 | ||
| 358 | if (lid == NULL) { | 358 | if (lid == NULL) { |
| @@ -365,7 +365,7 @@ int main(int argc, char *argv[]) | |||
| 365 | return 0; | 365 | return 0; |
| 366 | } | 366 | } |
| 367 | 367 | ||
| 368 | if (strcmp(cmd, "delete_list") == 0) { /** **/ | 368 | if (strcmp(cmd, "list_delete") == 0) { /** **/ |
| 369 | xs *lid = list_maint(&snac, url, 4); | 369 | xs *lid = list_maint(&snac, url, 4); |
| 370 | 370 | ||
| 371 | if (lid != NULL) { | 371 | if (lid != NULL) { |