equal
deleted
inserted
replaced
52 static const relpipe::common::type::StringX OPTION_LIST_INPUT_EVENTS; |
52 static const relpipe::common::type::StringX OPTION_LIST_INPUT_EVENTS; |
53 |
53 |
54 Configuration parse(const std::vector<relpipe::common::type::StringX>& arguments) { |
54 Configuration parse(const std::vector<relpipe::common::type::StringX>& arguments) { |
55 Configuration c; |
55 Configuration c; |
56 |
56 |
|
57 if (arguments.size() == 0) c.listInputDevices = true; |
|
58 |
57 for (int i = 0; i < arguments.size();) { |
59 for (int i = 0; i < arguments.size();) { |
58 relpipe::common::type::StringX option = readNext(arguments, i); |
60 relpipe::common::type::StringX option = readNext(arguments, i); |
59 |
61 |
60 if (option == OPTION_LIST_INPUT_DEVICES) { |
62 if (option == OPTION_LIST_INPUT_DEVICES) { |
61 c.listInputDevices = parseBoolean(readNext(arguments, i)); |
63 c.listInputDevices = parseBoolean(readNext(arguments, i)); |