Skip to content

Commit

Permalink
help and config menu updated
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetmertguduz committed Jun 2, 2024
1 parent 6d6b300 commit 8f4eb79
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
8 changes: 4 additions & 4 deletions src/menus/show_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ void write_configuration()
}

/* Write the configurations to terminal. */
fprintf(stdout, "current yiffy configurations\n");
fprintf(stdout, "----------------------------\n");
fprintf(stdout, "yiffy configurations (config.txt)\n");
fprintf(stdout, "---------------------------------\n");

while (fgets(buffer, MAX_BUFFER_SIZE - 1, config_file))
{
Expand All @@ -78,8 +78,8 @@ void write_credentials()
}

/* Write the credentials to terminal. */
fprintf(stdout, "current yiffy credentials\n");
fprintf(stdout, "-------------------------\n");
fprintf(stdout, "yiffy credentials (credentials.txt)\n");
fprintf(stdout, "-----------------------------------\n");

while (fgets(buffer, MAX_BUFFER_SIZE - 1, credentials_file))
{
Expand Down
30 changes: 15 additions & 15 deletions src/menus/show_help.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,35 +15,35 @@
*/
void show_help()
{
fprintf(stdout, "usage: yiffy [OPTION]\n");
fprintf(stdout, "usage: yiffy [option]\n");
fprintf(stdout, "use e621 and e926 from the terminal interface\n\n");

fprintf(stdout, "yiffy search tui argument\n");
fprintf(stdout, "-------------------------\n");
fprintf(stdout, "--search \"[TAGS]\" opens a tui interface\n\n");
fprintf(stdout, "--search [tags] opens a tui interface\n\n");

fprintf(stdout, "yiffy api fetch arguments\n");
fprintf(stdout, "-------------------------\n");
fprintf(stdout, "--fetch \"[TAGS]\" fetches urls\n");
fprintf(stdout, "--dfetch \"[TAGS]\" fetches urls and downloads\n\n");
fprintf(stdout, "--fetch [tags] fetches urls\n");
fprintf(stdout, "--dfetch [tags] fetches urls and downloads\n\n");

fprintf(stdout, "yiffy information menu arguments\n");
fprintf(stdout, "--------------------------------\n");
fprintf(stdout, "--help outputs the help menu\n");
fprintf(stdout, "--version outputs the version\n");
fprintf(stdout, "--github outputs the github url\n");
fprintf(stdout, "--config outputs the configs-credentials\n\n");
fprintf(stdout, "--help outputs the help menu\n");
fprintf(stdout, "--version outputs the version\n");
fprintf(stdout, "--github outputs the github url\n");
fprintf(stdout, "--config outputs the configs-credentials\n\n");

fprintf(stdout, "yiffy data import-export arguments\n");
fprintf(stdout, "-----------------------------------\n");
fprintf(stdout, "--import imports the data to program\n");
fprintf(stdout, "--export exports the data from program\n\n");
fprintf(stdout, "----------------------------------\n");
fprintf(stdout, "--import imports the data to program\n");
fprintf(stdout, "--export exports the data from program\n\n");

fprintf(stdout, "yiffy config and credential arguments\n");
fprintf(stdout, "-------------------------------------\n");
fprintf(stdout, "--nsfw \"[ON/OFF]\" switches to nsfw/sfw options\n");
fprintf(stdout, "--ivcommand \"[CMD]\" sets the image viewer command\n");
fprintf(stdout, "--uname \"[UNAME]\" sets the username\n");
fprintf(stdout, "--apikey \"[API KEY]\" sets the api key\n");
fprintf(stdout, "--nsfw [on/off] switches to nsfw/sfw options\n");
fprintf(stdout, "--ivcommand [cmd] sets the image viewer command\n");
fprintf(stdout, "--uname [uname] sets the username\n");
fprintf(stdout, "--apikey [apikey] sets the api key\n");

}

0 comments on commit 8f4eb79

Please sign in to comment.