cli: Exit explicitly on unknown command

This commit is contained in:
Albert S. 2022-04-24 19:40:28 +02:00
rodzic a132485924
commit a8184191b3

Wyświetl plik

@ -106,12 +106,14 @@ int main(int argc, char *argv[])
}
catch(const LooqsGeneralException &e)
{
Logger::error() << "Exception caught, message: " << e.message << Qt::endl;
Logger::error() << "Exception caught, message:" << e.message << Qt::endl;
return 1;
}
}
else
{
Logger::error() << "Unknown command " << commandName << Qt::endl;
Logger::error() << "Unknown command:" << commandName << Qt::endl;
return 1;
}
return app.exec();