fix --help at clean

This commit is contained in:
Markus 2019-08-16 20:21:53 +02:00
parent 383567207d
commit 0593d5e75f

View File

@ -731,8 +731,8 @@ bool fileExists (const std::string& name) {


void unterOption_clean(Settings * settings, int argc, char **argv) void unterOption_clean(Settings * settings, int argc, char **argv)
{ {
if(argc > 1) if(argc > 2)
if(strcmp(argv[1], "--help") == 0) { if(strcmp(argv[2], "--help") == 0) {
std::cout << "Aufruf: " << getProgramName() << " clean" << std::endl << std::endl; std::cout << "Aufruf: " << getProgramName() << " clean" << std::endl << std::endl;
std::cout << "Mit dieser Function werden die Cookie-Files gelöscht." << std::endl; std::cout << "Mit dieser Function werden die Cookie-Files gelöscht." << std::endl;
return; return;