5#include <QtCore/QCommandLineParser>
6#include <QtCore/QStringList>
24 std::unique_ptr<QCommandLineParser>
parser;
81#ifdef QGC_UNITTEST_BUILD
92#ifdef QGC_UNITTEST_BUILD
98void overrideCommandLine(
int& argc,
char**& argv);
CommandLineParseResult parse(int argc, char *argv[])
Parse command-line arguments with automatic QCoreApplication management.
AppMode determineAppMode(const CommandLineParseResult &args)
Determine the application mode from parsed arguments.
AppMode
Application execution mode.
@ Gui
Normal GUI application.
@ BootTest
Initialize and exit (for CI validation)
CommandLineParseResult parseCommandLine()
Parse command-line arguments (requires existing QCoreApplication)
std::optional< int > handleParseResult(const CommandLineParseResult &result)
Handle early exit conditions (help, version, error)
Result of parsing command-line arguments.
bool quietWindowsAsserts
Windows only: Disable assert dialogs.
std::unique_ptr< QCommandLineParser > parser
bool listTests
List available tests and exit.
QStringList unknownOptions
std::optional< QString > loggingOptions
std::optional< QString > errorString
bool useDesktopGL
Windows only: Force Desktop OpenGL.
enum QGCCommandLineParser::CommandLineParseResult::Status statusCode
std::optional< quint8 > systemId
std::optional< QString > labelFilter
Filter tests by label (comma-separated)
uint stressUnitTestsCount
bool useSwRast
Windows/macOS: Force software OpenGL.
std::optional< QString > unitTestOutput
Output file for test results (JUnit XML)
bool clearSettingsOptions