src/CLIParser.h
branchv_0
changeset 6 1b17b8cdbfc3
parent 1 3bbf848b3565
child 7 039b3f8a3442
equal deleted inserted replaced
5:7afa994c98f0 6:1b17b8cdbfc3
    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));