145 {"alias", required_argument, NULL, 'a'}, |
146 {"alias", required_argument, NULL, 'a'}, |
146 {"position", required_argument, NULL, 'p'}, |
147 {"position", required_argument, NULL, 'p'}, |
147 {"domain", required_argument, NULL, 'd'}, |
148 {"domain", required_argument, NULL, 'd'}, |
148 {"type", required_argument, NULL, 't'}, |
149 {"type", required_argument, NULL, 't'}, |
149 {"output-file", required_argument, NULL, 'o'}, |
150 {"output-file", required_argument, NULL, 'o'}, |
|
151 {"skin", required_argument, NULL, 's'}, |
150 {"force", no_argument, NULL, 'f'}, |
152 {"force", no_argument, NULL, 'f'}, |
151 {"quiet", no_argument, NULL, 'q'}, |
153 {"quiet", no_argument, NULL, 'q'}, |
152 {"verbose", no_argument, NULL, 'v'}, |
154 {"verbose", no_argument, NULL, 'v'}, |
153 {"help", no_argument, NULL, 'h'}, |
155 {"help", no_argument, NULL, 'h'}, |
154 {} |
156 {} |
155 }; |
157 }; |
156 |
158 |
157 do { |
159 do { |
158 c = getopt_long(argc, argv, "m:a:p:d:t:o:fqvh", longOptions, NULL); |
160 c = getopt_long(argc, argv, "m:a:p:d:t:o:s:fqvh", longOptions, NULL); |
159 |
161 |
160 switch (c) { |
162 switch (c) { |
161 case 'm': |
163 case 'm': |
162 masters = optarg; |
164 masters = optarg; |
163 break; |
165 break; |
306 cmd->setAliases(aliases); |
312 cmd->setAliases(aliases); |
307 cmd->setPositions(positions); |
313 cmd->setPositions(positions); |
308 cmd->setDomains(domains); |
314 cmd->setDomains(domains); |
309 cmd->setDataType(dataTypeStr); |
315 cmd->setDataType(dataTypeStr); |
310 cmd->setOutputFile(outputFile); |
316 cmd->setOutputFile(outputFile); |
|
317 cmd->setSkin(skin); |
311 cmd->setForce(force); |
318 cmd->setForce(force); |
312 cmd->execute(commandArgs); |
319 cmd->execute(commandArgs); |
313 } catch (InvalidUsageException &e) { |
320 } catch (InvalidUsageException &e) { |
314 cerr << e.what() << endl << endl; |
321 cerr << e.what() << endl << endl; |
315 cerr << cmd->helpString(binaryBaseName); |
322 cerr << cmd->helpString(binaryBaseName); |