QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
QGCCommandLineParser.cc File Reference
#include "QGCCommandLineParser.h"
#include <limits>
#include <QtCore/QCommandLineOption>
#include <QtCore/QCoreApplication>
#include "QGCLoggingCategory.h"
#include "qgc_version.h"
Include dependency graph for QGCCommandLineParser.cc:

Go to the source code of this file.

Namespaces

namespace  QGCCommandLineParser

Functions

static QStringList QGCCommandLineParser::normalizeArgs (const QStringList &args)
 Normalizes command-line arguments Converts colon-separated syntax (–option:value) to standard format (–option value) and handles special cases like –unittest without a value.
CommandLineParseResult QGCCommandLineParser::parseCommandLine ()
 Parse command-line arguments (requires existing QCoreApplication).
CommandLineParseResult QGCCommandLineParser::parse (int argc, char *argv[])
 Parse command-line arguments with automatic QCoreApplication management.
std::optional< int > QGCCommandLineParser::handleParseResult (const CommandLineParseResult &result)
 Handle early exit conditions (help, version, error).
AppMode QGCCommandLineParser::determineAppMode (const CommandLineParseResult &args)
 Determine the application mode from parsed arguments.
std::optional< quint32 > QGCCommandLineParser::parseSystemId (const QString &value)
 Validate a –system-id value.
std::optional< std::pair< uint, uint > > QGCCommandLineParser::parseUnitTestShard (const QString &value)
 Validate a –unittest-shard value of the form <index>/<count>.