mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 06:45:37 +08:00
refactor: Restructure parsing and setup loading methods
This commit is contained in:
@@ -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())
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user