20 #ifndef CLIPROCESSOR_HPP 21 #define CLIPROCESSOR_HPP 23 #include <QStringList> 36 static bool argsGetOption(
const QStringList& argList, QString shortOpt, QString longOpt);
65 static QVariant
argsGetOptionWithArg(
const QStringList& argList, QString shortOpt, QString longOpt, QVariant defaultValue);
87 static int argsGetYesNoOption(
const QStringList& argList, QString shortOpt, QString longOpt,
int defaultValue);
101 #endif // CLIPROCESSOR_HPP static bool argsGetOption(const QStringList &argList, QString shortOpt, QString longOpt)
Check if a QStringList has a CLI-style option in it (before the first –).
static void parseCLIArgsPreConfig(const QStringList &argList)
Processing of command line options which is to be done before config file is read.
static QVariant argsGetOptionWithArg(const QStringList &argList, QString shortOpt, QString longOpt, QVariant defaultValue)
Retrieve the argument to an option from a QStringList.
static int argsGetYesNoOption(const QStringList &argList, QString shortOpt, QString longOpt, int defaultValue)
Check if a QStringList has a yes/no CLI-style option in it, and find out the argument to that paramet...
static void parseCLIArgsPostConfig(const QStringList &argList, QSettings *conf)
Processing of command line options which is to be done after the config file is read.