v3.4.2: add error messagt to --remove when no dir is called

This commit is contained in:
Markus 2019-10-27 20:50:36 +01:00
parent 3ed500205c
commit e79caf03af
2 changed files with 8 additions and 1 deletions

View File

@ -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)

View File

@ -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 = "",