diff -r 1a0fbd17db13 -r 62ced7c41c67 src/CLIParser.h --- a/src/CLIParser.h Sun May 08 21:42:25 2022 +0200 +++ b/src/CLIParser.h Sun Jun 05 00:08:52 2022 +0200 @@ -41,6 +41,8 @@ static const relpipe::common::type::StringX OPTION_RELATION; static const relpipe::common::type::StringX OPTION_STREAM; + static const relpipe::common::type::StringX OPTION_CONNECTION_STRING; + static const relpipe::common::type::StringX OPTION_CONNECTION_OPTION; Configuration parse(const std::vector& arguments) { Configuration c; @@ -52,6 +54,12 @@ c.relation = readNext(arguments, i); } else if (option == OPTION_STREAM) { c.stream = readNext(arguments, i); + } else if (option == OPTION_CONNECTION_STRING) { + c.connectionString = readNext(arguments, i); + } else if (option == OPTION_CONNECTION_OPTION) { + auto name = readNext(arguments, i); + auto value = readNext(arguments, i); + c.connectionOptions.push_back({name, value}); } else throw relpipe::cli::RelpipeCLIException(L"Unsupported CLI option: " + option, relpipe::cli::CLI::EXIT_CODE_BAD_CLI_ARGUMENTS); } @@ -64,6 +72,8 @@ const relpipe::common::type::StringX CLIParser::OPTION_RELATION = L"--relation"; const relpipe::common::type::StringX CLIParser::OPTION_STREAM = L"--stream"; +const relpipe::common::type::StringX CLIParser::OPTION_CONNECTION_STRING = L"--connection-string"; +const relpipe::common::type::StringX CLIParser::OPTION_CONNECTION_OPTION = L"--connection-option"; } }