--- a/src/CLIParser.h Thu Nov 26 18:52:49 2020 +0100
+++ b/src/CLIParser.h Fri Nov 27 16:29:12 2020 +0100
@@ -49,6 +49,7 @@
public:
static const relpipe::writer::string_t OPTION_RELATION;
+ static const relpipe::writer::string_t OPTION_PARSER_OPTION;
static const relpipe::writer::string_t OPTION_ENABLE_SECTIONS;
static const relpipe::writer::string_t OPTION_ENABLE_SUB_KEYS;
static const relpipe::writer::string_t OPTION_ENABLE_COMMENTS;
@@ -63,6 +64,7 @@
relpipe::writer::string_t option = readNext(arguments, i);
if (option == OPTION_RELATION) c.relation = readNext(arguments, i);
+ else if (option == OPTION_PARSER_OPTION) c.parserOptions.push_back({readNext(arguments, i), readNext(arguments, i)});
else if (option == OPTION_ENABLE_SECTIONS) c.enableSections = parseBoolean(readNext(arguments, i));
else if (option == OPTION_ENABLE_SUB_KEYS) c.enableSubKeys = parseBoolean(readNext(arguments, i));
else if (option == OPTION_ENABLE_COMMENTS) c.enableComments = parseBoolean(readNext(arguments, i));
@@ -80,6 +82,7 @@
};
const relpipe::writer::string_t CLIParser::OPTION_RELATION = L"--relation";
+const relpipe::writer::string_t CLIParser::OPTION_PARSER_OPTION = L"--parser-option";
const relpipe::writer::string_t CLIParser::OPTION_ENABLE_SECTIONS = L"--enable-sections";
const relpipe::writer::string_t CLIParser::OPTION_ENABLE_SUB_KEYS = L"--enable-sub-keys";
const relpipe::writer::string_t CLIParser::OPTION_ENABLE_COMMENTS = L"--enable-comments";