CLIParser.h
branchv_0
changeset 30 02972f051744
parent 29 dc3c102e1264
child 35 dcb2ad86e23c
--- a/CLIParser.h	Wed Dec 27 01:50:38 2023 +0100
+++ b/CLIParser.h	Wed Dec 27 10:34:12 2023 +0100
@@ -25,7 +25,7 @@
 class CLIParser {
 private:
 
-	static const std::string OPTION_TEXTURE;
+	static const std::string OPTION_DOCUMENT;
 	static const std::string OPTION_SHADER;
 	static const std::string OPTION_BACKGROUND_COLOR;
 	static const std::string OPTION_ROOT_WINDOW;
@@ -69,10 +69,10 @@
 		for (int i = 0; i < arguments.size();) {
 			const std::string& option = readNext(arguments, i);
 
-			if (option == OPTION_TEXTURE) {
-				Configuration::Texture tex;
-				tex.fileName = readNext(arguments, i);
-				c.textures.push_back(tex);
+			if (option == OPTION_DOCUMENT) {
+				Configuration::Document document;
+				document.fileName = readNext(arguments, i);
+				c.documents.push_back(document);
 			} else if (option == OPTION_SHADER) {
 				const auto type = readNext(arguments, i);
 				const auto file = readNext(arguments, i);
@@ -88,7 +88,7 @@
 	}
 };
 
-const std::string CLIParser::OPTION_TEXTURE = "--texture";
+const std::string CLIParser::OPTION_DOCUMENT = "--document";
 const std::string CLIParser::OPTION_SHADER = "--shader";
 const std::string CLIParser::OPTION_BACKGROUND_COLOR = "--background-color";
 const std::string CLIParser::OPTION_ROOT_WINDOW = "--root-window";