This commit is contained in:
rosia 2025-06-10 22:09:51 +01:00
parent c2d478f4c0
commit 4ec19688b2

View file

@ -55,20 +55,6 @@ void copyFolderAndContents(std::string inUrl, std::string outUrl)
std::filesystem::copy(inUrl, outUrl, opts);
}
void checkForEmptyArguments()
{
// I hate doing it like this
if (source.empty() ||
output.empty() ||
stat.empty() ||
siteWebUrl.empty() ||
blogTemplate.empty() ||
atomTemplate.empty())
{
exit(0);
}
}
/*
* -in="" // give source folder
* -out="" // give output folder
@ -84,7 +70,16 @@ int main(int argc, char* argv[])
std::string blogTemplate = getArgValue(argc, argv, "-blogTemplate=");
std::string atomTemplate = getArgValue(argc, argv, "-atomTemplate=");
checkForEmptyArguments();
// I hate doing it like this
if (source.empty() ||
output.empty() ||
stat.empty() ||
siteWebUrl.empty() ||
blogTemplate.empty() ||
atomTemplate.empty())
{
exit(0);
}
int flags = OptionFlags::NONE;
if (doesArgExist(argc, argv, "-hide"))