--- a/src/CLIParser.h Sat Oct 26 17:45:37 2019 +0200
+++ b/src/CLIParser.h Sat Oct 26 19:28:39 2019 +0200
@@ -49,7 +49,8 @@
static const string_t OPTION_RELATION;
static const string_t OPTION_PARAMETER;
- static const string_t OPTION_DUMP;
+ static const string_t OPTION_COPY;
+ static const string_t OPTION_COPY_RENAMED;
static const string_t OPTION_FILE;
static const string_t OPTION_KEEP_FILE;
@@ -68,8 +69,10 @@
Parameter parameter;
parameter.value = readNext(arguments, i);
currentQuery.parameters.push_back(parameter);
- } else if (option == OPTION_DUMP) {
- c.dumpRelations = readNext(arguments, i);
+ } else if (option == OPTION_COPY) {
+ c.copyRelations.push_back({readNext(arguments, i), L"", false});
+ } else if (option == OPTION_COPY_RENAMED) {
+ c.copyRelations.push_back({readNext(arguments, i), readNext(arguments, i), true});
} else if (option == OPTION_FILE) {
c.file = readNext(arguments, i);
} else if (option == OPTION_KEEP_FILE) {
@@ -95,7 +98,8 @@
const string_t CLIParser::OPTION_RELATION = L"--relation";
const string_t CLIParser::OPTION_PARAMETER = L"--parameter";
-const string_t CLIParser::OPTION_DUMP = L"--dump";
+const string_t CLIParser::OPTION_COPY = L"--copy";
+const string_t CLIParser::OPTION_COPY_RENAMED = L"--copy-renamed";
const string_t CLIParser::OPTION_FILE = L"--file";
const string_t CLIParser::OPTION_KEEP_FILE = L"--keep-file";