src/CLIParser.h
branchv_0
changeset 44 dd7094457e44
parent 43 3c8ea5dcf793
child 46 ab27422a34b0
--- a/src/CLIParser.h	Tue Sep 22 21:00:30 2020 +0200
+++ b/src/CLIParser.h	Tue Sep 22 21:32:14 2020 +0200
@@ -71,6 +71,7 @@
 public:
 
 	static const relpipe::writer::string_t OPTION_RELATION;
+	static const relpipe::writer::string_t OPTION_WRITE_HEADER;
 	static const relpipe::writer::string_t OPTION_ATTRIBUTE;
 	static const relpipe::writer::string_t OPTION_RECORD;
 	static const relpipe::writer::string_t OPTION_RECORDS;
@@ -86,6 +87,8 @@
 			if (option == OPTION_RELATION) {
 				addRelation(c, currentRelation); // previous relation
 				currentRelation.relation = readNext(arguments, i);
+			} else if (option == OPTION_WRITE_HEADER) {
+				currentRelation.writeHeader = parseBoolean(readNext(arguments, i));
 			} else if (option == OPTION_ATTRIBUTE) {
 				AttributeRecipe attribute;
 				attribute.name = readNext(arguments, i);
@@ -110,6 +113,7 @@
 };
 
 const relpipe::writer::string_t CLIParser::OPTION_RELATION = L"--relation";
+const relpipe::writer::string_t CLIParser::OPTION_WRITE_HEADER = L"--write-header";
 const relpipe::writer::string_t CLIParser::OPTION_ATTRIBUTE = L"--attribute";
 const relpipe::writer::string_t CLIParser::OPTION_RECORD = L"--record";
 const relpipe::writer::string_t CLIParser::OPTION_RECORDS = L"--records";