minor cleanup

This commit is contained in:
rosia 2025-05-30 00:34:28 +01:00
parent a33833875c
commit 214f2ae235

View file

@ -34,7 +34,7 @@ std::string getArgValue(int argc, char* argv[], std::string argIdString)
if (strncmp(argId, argv[i], idValSplit) == 0)
return std::string(argv[i]).substr(idValSplit+1, strlen(argv[i])-(idValSplit+1));
}
printf("Missing argument! %s", argIdString); //the program exists if the value is 0
printf("Missing argument! %s", argIdString);
return std::string("")
}
@ -58,7 +58,12 @@ void copyFolderAndContents(std::string inUrl, std::string outUrl)
void checkForEmptyArguments()
{
// I hate doing it like this
if (source.empty() || output.empty() || stat.empty() || siteWebUrl.empty() || blogTemplate.empty() || atomTemplate.empty())
if (source.empty() ||
output.empty() ||
stat.empty() ||
siteWebUrl.empty() ||
blogTemplate.empty() ||
atomTemplate.empty())
{
exit(0);
}