bug fix
This commit is contained in:
parent
c2d478f4c0
commit
4ec19688b2
1 changed files with 10 additions and 15 deletions
25
Src/blog.cpp
25
Src/blog.cpp
|
@ -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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue