diff -r 1b17b8cdbfc3 -r 039b3f8a3442 src/CLIParser.h --- 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& 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"; } }