Compare commits
3 Commits
59d6c49cb2
...
e20ed57bd5
Author | SHA1 | Date | |
---|---|---|---|
e20ed57bd5 | |||
6986007b16 | |||
9ecdf73bc0 |
@ -62,8 +62,9 @@ DEFINES += QT_DEPRECATED_WARNINGS
|
||||
# 1.3.16: Bug fixes found during testing.
|
||||
# 1.3.17: Add ATBUpdateTool.ini and custom command line parser. Settings
|
||||
# given in ATBUpdateTool.ini can be overwritten on the command-line.
|
||||
VERSION="1.3.18"
|
||||
# 1.3.18: Bug fixes found during testing.
|
||||
VERSION="1.3.19"
|
||||
# 1.3.19: Bug fixes found during testing.
|
||||
|
||||
# PLANNED TODOS:
|
||||
# 1: Das Repository wird repariert bwz. neu geklont. Unabhaengig vom WAIT.
|
||||
|
@ -6,16 +6,18 @@
|
||||
#include <QFile>
|
||||
|
||||
CommandLineParser::CommandLineParser()
|
||||
: m_repositoryUrl("")
|
||||
, m_plugInDir("")
|
||||
, m_plugInName("")
|
||||
, m_workingDir("")
|
||||
, m_dryRun("")
|
||||
, m_noUpdatePsaHardware("")
|
||||
, m_showYoctoVersion("")
|
||||
, m_showYoctoInstallStatus("")
|
||||
, m_showExtendedVersion("")
|
||||
, m_iniFileName("")
|
||||
: m_repositoryUrl("https://git.mimbach49.de/GerhardHoffmann")
|
||||
, m_plugInDir("/usr/lib/")
|
||||
, m_plugInName("libCAslave.so")
|
||||
, m_workingDir("/opt/app/tools/atbupdate/")
|
||||
, m_dryRun("false")
|
||||
, m_noUpdatePsaHardware("false")
|
||||
, m_showYoctoVersion("false")
|
||||
, m_showYoctoInstallStatus("false")
|
||||
, m_showExtendedVersion("false")
|
||||
, m_iniFileName("ATBUpdateTool.ini")
|
||||
, m_alwaysDownloadConfig("false")
|
||||
, m_alwaysDownloadDC("false")
|
||||
, m_repositoryUrlOption(
|
||||
QCommandLineOption(
|
||||
QStringList() << "repository-url" << "repository-url",
|
||||
|
5
main.cpp
5
main.cpp
@ -74,6 +74,7 @@ int main(int argc, char *argv[]) {
|
||||
QString plugInDir = parser.plugInDir();
|
||||
QString plugInName = parser.plugInName();
|
||||
QString workingDir = parser.workingDir();
|
||||
QString iniFileName = parser.iniFileName();
|
||||
bool const dryRun = parser.dryRun();
|
||||
bool const noUpdatePsaHardware = parser.noUpdatePsaHardware();
|
||||
bool const showYoctoVersion = parser.yoctoVersion();
|
||||
@ -93,6 +94,10 @@ int main(int argc, char *argv[]) {
|
||||
qInfo() << "noUpdatePsaHardware ......" << noUpdatePsaHardware;
|
||||
qInfo() << "alwaysDownloadConfig ....." << alwaysDownloadConfig;
|
||||
qInfo() << "alwaysDownloadDC ........." << alwaysDownloadDC;
|
||||
qInfo() << "showYoctoVersion ........." << showYoctoVersion;
|
||||
qInfo() << "showYoctoInstallStatus ..." << showYoctoInstallStatus;
|
||||
qInfo() << "showExtendedVersion ......" << showExtendedVersion;
|
||||
qInfo() << "iniFileName .............." << iniFileName;
|
||||
qInfo() << "extended-version ........." << APP_EXTENDED_VERSION;
|
||||
|
||||
if (showExtendedVersion) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user