--- a/src/CLIParser.h Wed Oct 07 22:29:38 2020 +0200
+++ b/src/CLIParser.h Thu Oct 08 16:45:50 2020 +0200
@@ -53,6 +53,7 @@
static const relpipe::common::type::StringX OPTION_CONNECT_TO;
static const relpipe::common::type::StringX OPTION_REQUIRED_CONNECTIONS;
static const relpipe::common::type::StringX OPTION_LIST_PORTS;
+ static const relpipe::common::type::StringX OPTION_LIST_CONNECTIONS;
static const relpipe::common::type::StringX OPTION_LIST_MIDI_MESSAGES;
Configuration parse(const std::vector<relpipe::common::type::StringX>& arguments) {
@@ -71,6 +72,8 @@
c.requiredConnections = std::stoi(readNext(arguments, i));
} else if (option == OPTION_LIST_PORTS) {
c.listPorts = parseBoolean(readNext(arguments, i));
+ } else if (option == OPTION_LIST_CONNECTIONS) {
+ c.listConnections = parseBoolean(readNext(arguments, i));
} else if (option == OPTION_LIST_MIDI_MESSAGES) {
c.listMidiMessages = parseBoolean(readNext(arguments, i));
} else throw relpipe::cli::RelpipeCLIException(L"Unsupported CLI option: " + option, relpipe::cli::CLI::EXIT_CODE_BAD_CLI_ARGUMENTS);
@@ -88,6 +91,7 @@
const relpipe::common::type::StringX CLIParser::OPTION_CONNECT_TO = L"--connect-to";
const relpipe::common::type::StringX CLIParser::OPTION_REQUIRED_CONNECTIONS = L"--required-connections";
const relpipe::common::type::StringX CLIParser::OPTION_LIST_PORTS = L"--list-ports";
+const relpipe::common::type::StringX CLIParser::OPTION_LIST_CONNECTIONS = L"--list-connections";
const relpipe::common::type::StringX CLIParser::OPTION_LIST_MIDI_MESSAGES = L"--list-midi-messages";
}