diff --git a/docs/html/dc/dc0/yiffy_8c_source.html b/docs/html/dc/dc0/yiffy_8c_source.html
index 20a07d4..6ae7a85 100644
--- a/docs/html/dc/dc0/yiffy_8c_source.html
+++ b/docs/html/dc/dc0/yiffy_8c_source.html
@@ -208,102 +208,100 @@
126 char *one_arguments[] = {
"--help",
"--version",
"--github",
"--config"};
127 char *two_arguments[] = {
"--apikey",
"--uname",
"--ivcommand",
"--nsfw",
"--dfetch",
"--fetch",
"--search"};
-
- 130 if (argument_count == 3)
-
- 143 for (
size_t i = 0; i <
sizeof(two_arguments) /
sizeof(two_arguments[0]); i++)
-
- 145 if (strcmp(arguments[1], two_arguments[i]) == 0)
-
- 147 if (strcmp(arguments[2],
"on") == 0 || strcmp(arguments[2],
"off") == 0 || strcmp(arguments[1],
"--dfetch") == 0 || strcmp(arguments[1],
"--fetch") == 0 || strcmp(arguments[1],
"--search") == 0 || strcmp(arguments[1],
"--ivcommand") == 0 || strcmp(arguments[1],
"--uname") == 0 || strcmp(arguments[1],
"--apikey") == 0)
-
-
-
-
-
-
-
-
-
-
-
- 164 for (
size_t i = 0; i <
sizeof(one_arguments) /
sizeof(one_arguments[0]); i++)
-
- 166 if (strcmp(arguments[1], one_arguments[i]) == 0)
-
-
-
-
-
-
-
-
-
- 176 else if (argument_count == 2)
-
- 183 for (
size_t i = 0; i <
sizeof(one_arguments) /
sizeof(one_arguments[0]); i++)
-
- 185 if (strcmp(arguments[1], one_arguments[i]) == 0)
-
-
-
-
-
- 196 for (
size_t i = 0; i <
sizeof(two_arguments) /
sizeof(two_arguments[0]); i++)
-
- 198 if (strcmp(arguments[1], two_arguments[i]) == 0)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 224static bool is_api_accessible()
-
-
- 227 int ping_result = system(
"ping -c 1 e621.net >/dev/null 2>&1");
-
- 229 if (ping_result == 0)
-
-
-
-
-
-
-
-
-
-
- 245static void search_urls(
char *tags)
- 246{
if (is_api_accessible())
-
-
-
-
-
- 257static void fetch_urls(
char *tags,
char *command)
-
- 259 if (is_api_accessible())
-
-
-
-
- 264 fetch(tags, i, command);
-
-
-
-
+ 129 if (argument_count == 3)
+
+ 142 for (
size_t i = 0; i <
sizeof(two_arguments) /
sizeof(two_arguments[0]); i++)
+
+ 144 if (strcmp(arguments[1], two_arguments[i]) == 0)
+
+ 146 if (strcmp(arguments[2],
"on") == 0 || strcmp(arguments[2],
"off") == 0 || strcmp(arguments[1],
"--dfetch") == 0 || strcmp(arguments[1],
"--fetch") == 0 || strcmp(arguments[1],
"--search") == 0 || strcmp(arguments[1],
"--ivcommand") == 0 || strcmp(arguments[1],
"--uname") == 0 || strcmp(arguments[1],
"--apikey") == 0)
+
+
+
+
+
+
+
+
+
+
+
+ 163 for (
size_t i = 0; i <
sizeof(one_arguments) /
sizeof(one_arguments[0]); i++)
+
+ 165 if (strcmp(arguments[1], one_arguments[i]) == 0)
+
+
+
+
+
+
+
+
+
+ 175 else if (argument_count == 2)
+
+ 182 for (
size_t i = 0; i <
sizeof(one_arguments) /
sizeof(one_arguments[0]); i++)
+
+ 184 if (strcmp(arguments[1], one_arguments[i]) == 0)
+
+
+
+
+
+ 195 for (
size_t i = 0; i <
sizeof(two_arguments) /
sizeof(two_arguments[0]); i++)
+
+ 197 if (strcmp(arguments[1], two_arguments[i]) == 0)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 222static bool is_api_accessible()
+
+
+ 225 int ping_result = system(
"ping -c 1 e621.net >/dev/null 2>&1");
+
+ 227 if (ping_result == 0)
+
+
+
+
+
+
+
+
+
+
+ 243static void search_urls(
char *tags)
+ 244{
if (is_api_accessible())
+
+
+
+
+
+ 255static void fetch_urls(
char *tags,
char *command)
+
+ 257 if (is_api_accessible())
+
+
+
+
+ 262 fetch(tags, i, command);
+
+
+
+
void access_error_msg()
Gives message about the accessibility to the e621/e926 api.
void argc_error_msg(int argc)
Evaluates the argument count and gives information if not in the requested format.
void conf_apikey(char *argv)
Configures the api key option.
diff --git a/src/app/yiffy.c b/src/app/yiffy.c
index ce976ff..a4d6404 100644
--- a/src/app/yiffy.c
+++ b/src/app/yiffy.c
@@ -126,7 +126,6 @@ static bool argument_verify(int argument_count, char *arguments[])
char *one_arguments[] = {"--help", "--version", "--github", "--config"};
char *two_arguments[] = {"--apikey", "--uname", "--ivcommand", "--nsfw", "--dfetch", "--fetch", "--search"};
-
if (argument_count == 3)
{
/**
@@ -217,7 +216,6 @@ static bool argument_verify(int argument_count, char *arguments[])
}
}
-
/**
* @brief Sends ping to the e621/e926 to check if it accessible.
*/
@@ -245,7 +243,7 @@ static bool is_api_accessible()
static void search_urls(char *tags)
{ if (is_api_accessible())
{
- search(tags);
+ search(tags);
}
}