src/CLIParser.h
branchv_0
changeset 15 463ce61415f1
parent 14 cde9bb07ea0a
--- a/src/CLIParser.h	Thu Oct 08 17:23:07 2020 +0200
+++ b/src/CLIParser.h	Sun Oct 11 17:13:02 2020 +0200
@@ -56,6 +56,7 @@
 	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_PROPERTIES;
 	static const relpipe::common::type::StringX OPTION_LIST_MIDI_MESSAGES;
 
 	Configuration parse(const std::vector<relpipe::common::type::StringX>& arguments) {
@@ -78,6 +79,8 @@
 				c.listPorts = parseBoolean(readNext(arguments, i));
 			} else if (option == OPTION_LIST_CONNECTIONS) {
 				c.listConnections = parseBoolean(readNext(arguments, i));
+			} else if (option == OPTION_LIST_PROPERTIES) {
+				c.listProperties = 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);
@@ -98,6 +101,7 @@
 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_PROPERTIES = L"--list-properties";
 const relpipe::common::type::StringX CLIParser::OPTION_LIST_MIDI_MESSAGES = L"--list-midi-messages";
 
 }