From 214f2ae235149ba99ea1da4608e207b1d9e01693 Mon Sep 17 00:00:00 2001 From: rosia Date: Fri, 30 May 2025 00:34:28 +0100 Subject: [PATCH] minor cleanup --- Src/blog.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Src/blog.cpp b/Src/blog.cpp index b9e02c4..3b2482d 100644 --- a/Src/blog.cpp +++ b/Src/blog.cpp @@ -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); }