src/CLIParser.h
branchv_0
changeset 2 e6294ba5017f
parent 1 ccaed729f8d3
--- a/src/CLIParser.h	Sun May 01 22:27:42 2022 +0200
+++ b/src/CLIParser.h	Sat Jul 23 21:35:51 2022 +0200
@@ -39,7 +39,7 @@
 
 public:
 
-	static const relpipe::common::type::StringX OPTION_ENDPOINT_URL;
+	static const relpipe::common::type::StringX OPTION_CONNECTION_STRING;
 
 	Configuration parse(const std::vector<relpipe::common::type::StringX>& arguments) {
 		Configuration c;
@@ -47,8 +47,8 @@
 		for (int i = 0; i < arguments.size();) {
 			relpipe::common::type::StringX option = readNext(arguments, i);
 
-			if (option == OPTION_ENDPOINT_URL) {
-				c.endpointUrl = readNext(arguments, i);
+			if (option == OPTION_CONNECTION_STRING) {
+				c.connectionString = readNext(arguments, i);
 			} else throw relpipe::cli::RelpipeCLIException(L"Unsupported CLI option: " + option, relpipe::cli::CLI::EXIT_CODE_BAD_CLI_ARGUMENTS);
 		}
 
@@ -59,7 +59,7 @@
 	}
 };
 
-const relpipe::common::type::StringX CLIParser::OPTION_ENDPOINT_URL = L"--endpoint-url";
+const relpipe::common::type::StringX CLIParser::OPTION_CONNECTION_STRING = L"--connection-string";
 
 }
 }