summaryrefslogblamecommitdiffstats
path: root/src/command_line_options.h
blob: 8798ff22e420815973bd361abb40e39805e10df1 (plain) (tree)






















                                                      
#ifndef VMCHOOSER_COMMAND_LINE_OPTIONS_H
#define VMCHOOSER_COMMAND_LINE_OPTIONS_H

#include <QMap>
#include <QString>

class CommandLineOptions {
  public:
    CommandLineOptions(int argc, char * const argv[]);

    bool contains(const QString& key) const {
        return options.contains(key);
    }

    QString value(const QString& key) const {
        return options.value(key);
    }

  private:
    QMap<QString, QString> options;
};

#endif // VMCHOOSER_COMMAND_LINE_OPTIONS_H