From e79caf03afa699d1f985d2db30ff19588f6ddef1 Mon Sep 17 00:00:00 2001 From: Markus Date: Sun, 27 Oct 2019 20:50:36 +0100 Subject: [PATCH] v3.4.2: add error messagt to --remove when no dir is called --- parameterManager.cpp | 7 +++++++ parameterManager.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/parameterManager.cpp b/parameterManager.cpp index 4079366..0fcfa61 100644 --- a/parameterManager.cpp +++ b/parameterManager.cpp @@ -1361,6 +1361,13 @@ int unterOption_RemoveSettings_or_CacheDir(Settings *settings, int argc, char ** } if(settings->name.length() > 0) settings->name.pop_back(); + else { + std::cout << " => Error: Keinen Ordner angegeben." << std::endl; + std::cout << "Aufruf: " << settings->programName << " --remove [OPTION]... [settings|cache|all]" << std::endl; + std::cout << "\"" << settings->programName << " --remove --help\" liefert weitere Informationen." << std::endl; + return 22; + } + if(settings->debugMode) diff --git a/parameterManager.h b/parameterManager.h index 6b75d4d..3195224 100644 --- a/parameterManager.h +++ b/parameterManager.h @@ -63,7 +63,7 @@ struct Settings { proxy_ip = "127.0.0.1", languages = "GerDub,GerSub,Eng,", genaueHoster = "", - version = "3.4.1", + version = "3.4.2", defaultFileVersion="1.6", outputFilePath = "", default_checkPath = "",