-class CliParser{
-public:
- inline CliParser() {};
-
- bool parse(const QStringList &arguments);
- QString value(const QString &longName);
- bool isSet(const QString &longName);
- inline void addSwitch(const QString &longName, const char shortName = 0, const QString &help = QString()) {
- addArgument(longName, CliParserArg(CliParserArg::CliArgSwitch, shortName, help));
- }
- inline void addOption(const QString &longName, const char shortName = 0, const QString &help = QString(), const QString &def = QString()) {
- addArgument(longName, CliParserArg(CliParserArg::CliArgOption, shortName, help, def));
- }
- void usage();