refactor: Restructure parsing and setup loading methods

This commit is contained in:
Lars Toenning
2024-02-15 00:01:31 +01:00
parent 99de8009be
commit 9d3ae3e2b3
8 changed files with 50 additions and 34 deletions

View File

@@ -100,7 +100,7 @@ int main(int argc, char *argv[])
BLACKTEST_INIT(BlackCoreTest::CTestContext)
CApplication a(CApplicationInfo::UnitTest);
a.addVatlibOptions();
const bool setup = a.parseAndLoadSetup();
const bool setup = a.parseCommandLineArgsAndLoadSetup();
if (!setup) { qWarning() << "No setup loaded"; }
int r = EXIT_FAILURE;
if (a.start())

View File

@@ -124,7 +124,7 @@ int main(int argc, char *argv[])
BLACKTEST_INIT(BlackCoreTest::CTestConnectivity)
CApplication a(CApplicationInfo::UnitTest);
a.addVatlibOptions();
const bool setup = a.parseAndLoadSetup();
const bool setup = a.parseCommandLineArgsAndLoadSetup();
if (!setup) { qWarning() << "No setup loaded"; }
int r = EXIT_FAILURE;
if (a.start())