src/CLIParser.h
branchv_0
changeset 14 f407f2a2871d
parent 9 b064f1b3676e
child 19 e4558df9ba2d
equal deleted inserted replaced
13:b74001992ec3 14:f407f2a2871d
    95 				definition.type = readNext(arguments, i);
    95 				definition.type = readNext(arguments, i);
    96 				definition.value = readNext(arguments, i);
    96 				definition.value = readNext(arguments, i);
    97 				if (currentRelation.relation.size()) currentRelation.definitions.push_back(definition);
    97 				if (currentRelation.relation.size()) currentRelation.definitions.push_back(definition);
    98 				else c.definitions.push_back(definition);
    98 				else c.definitions.push_back(definition);
    99 			} else throw relpipe::cli::RelpipeCLIException(L"Unsupported CLI option: " + option, relpipe::cli::CLI::EXIT_CODE_BAD_CLI_ARGUMENTS);
    99 			} else throw relpipe::cli::RelpipeCLIException(L"Unsupported CLI option: " + option, relpipe::cli::CLI::EXIT_CODE_BAD_CLI_ARGUMENTS);
   100 
       
   101 			addRelation(c, currentRelation); // last relation
       
   102 		}
   100 		}
       
   101 		addRelation(c, currentRelation); // last relation
   103 
   102 
   104 		return c;
   103 		return c;
   105 	}
   104 	}
   106 
   105 
   107 	virtual ~CLIParser() {
   106 	virtual ~CLIParser() {