Add parsing for flags: alwaysDownLoadDC and alwaysDownloadConfig.

This commit is contained in:
Gerhard Hoffmann 2023-11-21 09:46:11 +01:00
parent f387eaedea
commit 746d96ca7c

View File

@ -79,6 +79,8 @@ int main(int argc, char *argv[]) {
bool const showYoctoVersion = parser.yoctoVersion(); bool const showYoctoVersion = parser.yoctoVersion();
bool const showYoctoInstallStatus = parser.yoctoInstallStatus(); bool const showYoctoInstallStatus = parser.yoctoInstallStatus();
bool const showExtendedVersion = parser.extendedVersion(); bool const showExtendedVersion = parser.extendedVersion();
bool const alwaysDownloadConfig = parser.alwaysDownloadConfig();
bool const alwaysDownloadDC = parser.alwaysDownloadDC();
QString const rtPath = QCoreApplication::applicationDirPath(); QString const rtPath = QCoreApplication::applicationDirPath();
@ -89,6 +91,8 @@ int main(int argc, char *argv[]) {
qInfo() << "workingDir ..............." << workingDir; qInfo() << "workingDir ..............." << workingDir;
qInfo() << "dryRun ..................." << dryRun; qInfo() << "dryRun ..................." << dryRun;
qInfo() << "noUpdatePsaHardware ......" << noUpdatePsaHardware; qInfo() << "noUpdatePsaHardware ......" << noUpdatePsaHardware;
qInfo() << "alwaysDownloadConfig ....." << alwaysDownloadConfig;
qInfo() << "alwaysDownloadDC ........." << alwaysDownloadDC;
qInfo() << "extended-version ........." << APP_EXTENDED_VERSION; qInfo() << "extended-version ........." << APP_EXTENDED_VERSION;
if (showExtendedVersion) { if (showExtendedVersion) {
@ -136,6 +140,8 @@ int main(int argc, char *argv[]) {
plugInName, plugInName,
workingDir, workingDir,
noUpdatePsaHardware, noUpdatePsaHardware,
alwaysDownloadConfig,
alwaysDownloadDC,
dryRun); dryRun);
MainWindow mw(&worker); MainWindow mw(&worker);