diff --git a/src/gpgcardgui/gpgcardgui-options.h b/src/gpgcardgui/gpgcardgui-options.h new file mode 100644 index 0000000..24482c7 --- /dev/null +++ b/src/gpgcardgui/gpgcardgui-options.h @@ -0,0 +1,29 @@ +/* Copyright (C) 2020 by g10 Code GmbH + * + * This file is Free Software under the GNU GPL (v>=2) + * and comes with ABSOLUTELY NO WARRANTY! + * See LICENSE.txt for details. + */ +#pragma once +#include +#include + +/** @file Commandline options*/ +static void options(QCommandLineParser &parser) +{ + QList options; + + options + << QCommandLineOption(QStringList() << QStringLiteral("debug"), + QStringLiteral("Print debug output.")) + << QCommandLineOption(QStringLiteral("lang"), + QStringLiteral("Language"), + QStringLiteral("Language to be used e.g. de_DE")) + ; + + for (const auto &opt: options) { + parser.addOption(opt); + } + parser.addVersionOption(); + parser.addHelpOption(); +}