diff -r d0fc5f337ea2 -r 05dbed834852 cadMousePro-daemon/src/CLIParser.h --- a/cadMousePro-daemon/src/CLIParser.h Mon Aug 19 17:38:48 2019 +0200 +++ b/cadMousePro-daemon/src/CLIParser.h Mon Aug 19 17:55:50 2019 +0200 @@ -50,7 +50,7 @@ static const std::wstring OPTION_FREQUENCY; static const std::wstring OPTION_SMART_SCROLLING; static const std::wstring OPTION_LIFT_OFF_DETECTION; - static const std::wstring OPTION_KEEP_FILE; + static const std::wstring OPTION_DAEMON; CLIConfiguration parse(const std::vector& arguments) { CLIConfiguration c; @@ -64,6 +64,8 @@ c.cadMouseConfig.setSmartScrolling(parseBoolean(readNext(arguments, i))); } else if (option == OPTION_LIFT_OFF_DETECTION) { c.cadMouseConfig.setLiftOffDetection(parseBoolean(readNext(arguments, i))); + } else if (option == OPTION_DAEMON) { + c.daemon = parseBoolean(readNext(arguments, i)); } else throw CLIException(L"Unsupported CLI option: " + option, CLI::EXIT_CODE_BAD_CLI_ARGUMENTS); } @@ -78,3 +80,4 @@ const std::wstring CLIParser::OPTION_FREQUENCY = L"--frequency"; const std::wstring CLIParser::OPTION_SMART_SCROLLING = L"--smart-scrolling"; const std::wstring CLIParser::OPTION_LIFT_OFF_DETECTION = L"--lift-off-detection"; +const std::wstring CLIParser::OPTION_DAEMON = L"--daemon";