--- a/src/CLIParser.h Wed May 22 19:26:10 2019 +0200
+++ b/src/CLIParser.h Thu May 23 23:35:52 2019 +0200
@@ -31,7 +31,7 @@
/**
* This tr-awk CLI options are inspired by tr-guile options.
- * These configurations are independent and might diverge, but when possible, the should share same option names and same logic for common parts.
+ * These configurations are independent and might diverge, but when possible, they should share same option names and same logic for common parts.
*/
class CLIParser {
private:
@@ -64,6 +64,7 @@
static const string_t OPTION_OUTPUT_ATTRIBUTE;
static const string_t OPTION_INPUT_ATTRIBUTES_APPEND;
static const string_t OPTION_INPUT_ATTRIBUTES_PREPEND;
+ static const string_t OPTION_DEBUG_VARIABLE_MAPPING;
static const string_t OPTION_BEFORE_RECORDS;
static const string_t OPTION_AFTER_RECORDS;
static const string_t OPTION_FOR_EACH;
@@ -83,6 +84,7 @@
else if (option == OPTION_DROP) currentRelation.drop = true;
else if (option == OPTION_INPUT_ATTRIBUTES_APPEND) currentRelation.inputAttributesAppend = true;
else if (option == OPTION_INPUT_ATTRIBUTES_PREPEND) currentRelation.inputAttributesPrepend = true;
+ else if (option == OPTION_DEBUG_VARIABLE_MAPPING) currentRelation.debugVariableMapping = true;
else if (option == OPTION_RELATION) {
addRelation(c, currentRelation); // previous relation
currentRelation.relation = readNext(arguments, i);
@@ -113,6 +115,7 @@
const string_t CLIParser::OPTION_OUTPUT_ATTRIBUTE = L"--output-attribute";
const string_t CLIParser::OPTION_INPUT_ATTRIBUTES_APPEND = L"--input-attributes-append";
const string_t CLIParser::OPTION_INPUT_ATTRIBUTES_PREPEND = L"--input-attributes-prepend";
+const string_t CLIParser::OPTION_DEBUG_VARIABLE_MAPPING = L"--debug-variable-mapping";
const string_t CLIParser::OPTION_BEFORE_RECORDS = L"--before-records";
const string_t CLIParser::OPTION_AFTER_RECORDS = L"--after-records";
const string_t CLIParser::OPTION_FOR_EACH = L"--for-each";