--- a/src/CLIParser.h Wed Jul 24 15:53:42 2019 +0200
+++ b/src/CLIParser.h Wed Jul 24 21:29:56 2019 +0200
@@ -56,6 +56,7 @@
static const string_t OPTION_NAMESPACE;
static const string_t OPTION_RELATION;
+ static const string_t OPTION_NAME_IS_XPATH;
static const string_t OPTION_RECORDS;
static const string_t OPTION_ATTRIBUTE;
@@ -72,6 +73,8 @@
} else if (option == OPTION_RELATION) {
addRelation(c, currentRelation); // previous relation
currentRelation.relation = readNext(arguments, i);
+ } else if (option == OPTION_NAME_IS_XPATH) {
+ currentRelation.nameIsXPath = true;
} else if (option == OPTION_RECORDS) {
currentRelation.xpath = readNext(arguments, i);
} else if (option == OPTION_ATTRIBUTE) {
@@ -93,6 +96,7 @@
const string_t CLIParser::OPTION_NAMESPACE = L"--namespace";
const string_t CLIParser::OPTION_RELATION = L"--relation";
+const string_t CLIParser::OPTION_NAME_IS_XPATH = L"--name-is-xpath";
const string_t CLIParser::OPTION_RECORDS = L"--records";
const string_t CLIParser::OPTION_ATTRIBUTE = L"--attribute";