--- a/src/CLIParser.h Mon Apr 05 15:37:28 2021 +0200
+++ b/src/CLIParser.h Mon Apr 05 18:09:25 2021 +0200
@@ -51,6 +51,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;
+ static const relpipe::common::type::StringX OPTION_LIST_SCREENS;
Configuration parse(const std::vector<relpipe::common::type::StringX>& arguments) {
Configuration c;
@@ -66,6 +67,8 @@
c.listInputEvents = parseBoolean(readNext(arguments, i));
} else if (option == OPTION_LIST_WINDOWS) {
c.listWindows = parseBoolean(readNext(arguments, i));
+ } else if (option == OPTION_LIST_SCREENS) {
+ c.listScreens = parseBoolean(readNext(arguments, i));
} else throw relpipe::cli::RelpipeCLIException(L"Unsupported CLI option: " + option, relpipe::cli::CLI::EXIT_CODE_BAD_CLI_ARGUMENTS);
}
@@ -79,6 +82,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";
+const relpipe::common::type::StringX CLIParser::OPTION_LIST_SCREENS = L"--list-screens";
}
}