Changeset 21 for trunk/tmdmcreator/src/main.cpp
- Timestamp:
- 02/25/13 11:47:25 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tmdmcreator/src/main.cpp
r18 r21 35 35 wxCMD_LINE_VAL_NONE, wxCMD_LINE_OPTION_HELP }, 36 36 { wxCMD_LINE_SWITCH, "v", "verbose", "Be more verbose" }, 37 { wxCMD_LINE_SWITCH, "t", "toolmap", "toolmap output" }, 38 { wxCMD_LINE_SWITCH, "o", "overwrite", "overwrite output" }, 37 { wxCMD_LINE_SWITCH, "t", "toolmap", "toolmap output (default is SQL)" }, 38 { wxCMD_LINE_SWITCH, "o", "overwrite", "overwrite output" }, 39 { wxCMD_LINE_OPTION, "l", "language", "language column (default is 0)", wxCMD_LINE_VAL_NUMBER, wxCMD_LINE_PARAM_OPTIONAL}, 39 40 { wxCMD_LINE_PARAM, NULL, NULL, "[base structure sql file]"}, 40 41 { wxCMD_LINE_PARAM, NULL, NULL, "[user structure sql file]"}, … … 83 84 bool bVerbose = parser.Found("verbose"); 84 85 bool bToolMap = parser.Found("toolmap"); 86 long myLanguage = 0; 87 if(parser.Found("language", &myLanguage) == true) { 88 wxPrintf(_("Using language column: %ld\n"), myLanguage); 89 } 85 90 if (parser.Found("overwrite") && wxFileExists(parser.GetParam(3))) { 86 91 wxRemoveFile(parser.GetParam(3)); … … 108 113 } 109 114 110 if (myCreator.ProcessFiles(myErrors ) == false) {115 if (myCreator.ProcessFiles(myErrors, myLanguage) == false) { 111 116 if (bVerbose == true) { 112 117 PrintArray(myErrors);
Note: See TracChangeset
for help on using the changeset viewer.