--- a/src/CLIParser.h Mon May 02 17:59:10 2022 +0200
+++ b/src/CLIParser.h Sat Jul 23 21:36:01 2022 +0200
@@ -40,7 +40,7 @@
public:
static const relpipe::writer::string_t OPTION_RELATION;
- static const relpipe::writer::string_t OPTION_ENDPOINT_URL;
+ static const relpipe::writer::string_t OPTION_CONNECTION_STRING;
static const relpipe::writer::string_t OPTION_MESSAGE_COUNT;
Configuration parse(const std::vector<relpipe::writer::string_t>& arguments) {
@@ -51,8 +51,8 @@
if (option == OPTION_RELATION) {
c.relation = readNext(arguments, i);
- } else if (option == OPTION_ENDPOINT_URL) {
- c.endpointUrl = readNext(arguments, i);
+ } else if (option == OPTION_CONNECTION_STRING) {
+ c.connectionString = readNext(arguments, i);
} else if (option == OPTION_MESSAGE_COUNT) {
c.messageCount = std::stoull(readNext(arguments, i));
} else throw relpipe::cli::RelpipeCLIException(L"Unsupported CLI option: " + option, relpipe::cli::CLI::EXIT_CODE_BAD_CLI_ARGUMENTS);
@@ -66,7 +66,7 @@
};
const relpipe::writer::string_t CLIParser::OPTION_RELATION = L"--relation";
-const relpipe::writer::string_t CLIParser::OPTION_ENDPOINT_URL = L"--endpoint-url";
+const relpipe::writer::string_t CLIParser::OPTION_CONNECTION_STRING = L"--connection-string";
const relpipe::writer::string_t CLIParser::OPTION_MESSAGE_COUNT = L"--message-count";
}