src/CLIParser.h
branchv_0
changeset 13 c9fece435aa2
parent 12 7977c1bdba1f
child 14 82bd0f57a889
--- a/src/CLIParser.h	Tue Feb 05 00:06:44 2019 +0100
+++ b/src/CLIParser.h	Tue Feb 05 12:14:58 2019 +0100
@@ -97,7 +97,8 @@
 					definition.name = readNext(arguments, i);
 					definition.type = readNext(arguments, i);
 					definition.value = readNext(arguments, i);
-					currentRelation.definitions.push_back(definition);
+					if (currentRelation.relation.size()) currentRelation.definitions.push_back(definition);
+					else c.definitions.push_back(definition);
 				} else throw relpipe::cli::RelpipeCLIException(L"Unsupported CLI option: " + option, relpipe::cli::CLI::EXIT_CODE_BAD_CLI_ARGUMENTS);
 
 			}