minor cleanup
This commit is contained in:
parent
a33833875c
commit
214f2ae235
1 changed files with 7 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue