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