src/CLIParser.h
branchv_0
changeset 22 d5e80f15d1f7
parent 21 6486334a9f93
child 23 6ee7a9e311e9
equal deleted inserted replaced
21:6486334a9f93 22:d5e80f15d1f7
    97 				definition.type = readNext(arguments, i);
    97 				definition.type = readNext(arguments, i);
    98 				definition.value = readNext(arguments, i);
    98 				definition.value = readNext(arguments, i);
    99 				if (currentRelation.relation.size()) currentRelation.definitions.push_back(definition);
    99 				if (currentRelation.relation.size()) currentRelation.definitions.push_back(definition);
   100 				else c.definitions.push_back(definition);
   100 				else c.definitions.push_back(definition);
   101 			} else throw relpipe::cli::RelpipeCLIException(L"Unsupported CLI option: " + option, relpipe::cli::CLI::EXIT_CODE_BAD_CLI_ARGUMENTS);
   101 			} else throw relpipe::cli::RelpipeCLIException(L"Unsupported CLI option: " + option, relpipe::cli::CLI::EXIT_CODE_BAD_CLI_ARGUMENTS);
   102 
       
   103 			addRelation(c, currentRelation); // last relation
       
   104 		}
   102 		}
       
   103 		addRelation(c, currentRelation); // last relation
   105 
   104 
   106 		return c;
   105 		return c;
   107 	}
   106 	}
   108 
   107 
   109 	virtual ~CLIParser() {
   108 	virtual ~CLIParser() {