src/CLIParser.h
branchv_0
changeset 7 039b3f8a3442
parent 6 1b17b8cdbfc3
child 8 b498160cc2ab
--- a/src/CLIParser.h	Wed Apr 07 22:55:00 2021 +0200
+++ b/src/CLIParser.h	Mon Apr 05 15:37:28 2021 +0200
@@ -50,6 +50,7 @@
 
 	static const relpipe::common::type::StringX OPTION_LIST_INPUT_DEVICES;
 	static const relpipe::common::type::StringX OPTION_LIST_INPUT_EVENTS;
+	static const relpipe::common::type::StringX OPTION_LIST_WINDOWS;
 
 	Configuration parse(const std::vector<relpipe::common::type::StringX>& arguments) {
 		Configuration c;
@@ -63,6 +64,8 @@
 				c.listInputDevices = parseBoolean(readNext(arguments, i));
 			} else if (option == OPTION_LIST_INPUT_EVENTS) {
 				c.listInputEvents = parseBoolean(readNext(arguments, i));
+			} else if (option == OPTION_LIST_WINDOWS) {
+				c.listWindows = parseBoolean(readNext(arguments, i));
 			} else throw relpipe::cli::RelpipeCLIException(L"Unsupported CLI option: " + option, relpipe::cli::CLI::EXIT_CODE_BAD_CLI_ARGUMENTS);
 		}
 
@@ -75,6 +78,7 @@
 
 const relpipe::common::type::StringX CLIParser::OPTION_LIST_INPUT_DEVICES = L"--list-input-devices";
 const relpipe::common::type::StringX CLIParser::OPTION_LIST_INPUT_EVENTS = L"--list-input-events";
+const relpipe::common::type::StringX CLIParser::OPTION_LIST_WINDOWS = L"--list-windows";
 
 }
 }