--- a/src/CLIParser.h Tue Oct 06 16:55:22 2020 +0200
+++ b/src/CLIParser.h Wed Oct 07 01:45:30 2020 +0200
@@ -51,6 +51,8 @@
static const relpipe::common::type::StringX OPTION_JACK_CLIENT_NAME;
static const relpipe::common::type::StringX OPTION_JACK_CONNECT_TO_PORT;
static const relpipe::common::type::StringX OPTION_REQUIRED_JACK_CONNECTIONS;
+ static const relpipe::common::type::StringX OPTION_LIST_JACK_PORTS;
+ static const relpipe::common::type::StringX OPTION_LIST_MIDI_MESSAGES;
Configuration parse(const std::vector<relpipe::common::type::StringX>& arguments) {
Configuration c;
@@ -64,6 +66,10 @@
c.portsToConnect.push_back(readNext(arguments, i));
} else if (option == OPTION_REQUIRED_JACK_CONNECTIONS) {
c.requiredJackConnections = std::stoi(readNext(arguments, i));
+ } else if (option == OPTION_LIST_JACK_PORTS) {
+ c.listJackPorts = 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);
}
@@ -77,6 +83,8 @@
const relpipe::common::type::StringX CLIParser::OPTION_JACK_CLIENT_NAME = L"--jack-client-name";
const relpipe::common::type::StringX CLIParser::OPTION_JACK_CONNECT_TO_PORT = L"--jack-connect-to-port";
const relpipe::common::type::StringX CLIParser::OPTION_REQUIRED_JACK_CONNECTIONS = L"--required-jack-connections";
+const relpipe::common::type::StringX CLIParser::OPTION_LIST_JACK_PORTS = L"--list-jack-ports";
+const relpipe::common::type::StringX CLIParser::OPTION_LIST_MIDI_MESSAGES = L"--list-midi-messages";
}
}