equal
deleted
inserted
replaced
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; |