forked from markus/S_New4
v3.4.2: add error messagt to --remove when no dir is called
This commit is contained in:
parent
3ed500205c
commit
e79caf03af
@ -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)
|
||||
|
@ -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 = "",
|
||||
|
Loading…
Reference in New Issue
Block a user