src/GuileHandler.h
branchv_0
changeset 4 9b4fe4bc5f0f
parent 3 d4d0e50f54da
child 5 17bb45570099
equal deleted inserted replaced
3:d4d0e50f54da 4:9b4fe4bc5f0f
   107 		// TODO: options and parser
   107 		// TODO: options and parser
   108 		if (arguments.size() == 2) {
   108 		if (arguments.size() == 2) {
   109 			relationNameRegEx = wregex(arguments[0]);
   109 			relationNameRegEx = wregex(arguments[0]);
   110 			guileCode = arguments[1];
   110 			guileCode = arguments[1];
   111 		} else {
   111 		} else {
   112 			throw cli::RelpipeCLIException(L"Usage: relpipe-tr-guile <relationNameRegExp>", cli::CLI::EXIT_CODE_UNKNOWN_COMMAND);
   112 			throw cli::RelpipeCLIException(L"Usage: relpipe-tr-guile <relationNameRegExp> <whereConditionGuileCode>", cli::CLI::EXIT_CODE_UNKNOWN_COMMAND);
   113 		}
   113 		}
   114 	}
   114 	}
   115 
   115 
   116 	void startRelation(string_t name, vector<AttributeMetadata> attributes) override {
   116 	void startRelation(string_t name, vector<AttributeMetadata> attributes) override {
   117 		currentMetadata = attributes;
   117 		currentMetadata = attributes;