Skip to content

Commit a729b74

Browse files
Fixed bugs and spelling corrections
This is last update before adding multi-programming language class option
1 parent 6c87e3a commit a729b74

File tree

5 files changed

+617
-364
lines changed

5 files changed

+617
-364
lines changed

SQLiteClassBuilder.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ int main(int argc, char* argv[])
7070
//HeaderOpt
7171
("f,folder", "Distination folder. Path where headers are created.", cxxopts::value<std::string>()->default_value("SQL"))
7272
("a,prefix", "Specify a desired prefix for created headers. Default: \"sql_\".", cxxopts::value<std::string>()->default_value("sql_"))
73-
("z,postfix", "Optionally specify a desired postfix for created headers. Default: empty.", cxxopts::value<std::string>()->default_value(""))
73+
("z,suffix", "Optionally specify a desired suffix for created headers. Default: empty.", cxxopts::value<std::string>()->default_value(""))
7474
("y,fileext", "File type to create (h, hpp, class, hxx). Note: If empty, default type is used. Default: \"h\".", cxxopts::value<std::string>()->default_value("h"))
7575
("i,include", "#include to add to all headers. Note: If empty, no additional include is added. Default: \"..\\sqlite3pp_ez.h\".", cxxopts::value<std::string>()->default_value("..\\sqlite3pp_ez.h"))
7676
("r,rmdir", "Remove destination directory before creating headers", cxxopts::value<bool>()->default_value("false"))
@@ -141,7 +141,7 @@ int main(int argc, char* argv[])
141141
if (!arg_result["dhead"].as<bool>() && PathAlreadyExisted && SqlMasterHeader_AlreadyExisted)
142142
{
143143
V_COUT(INFO, "Deleting existing headers.");
144-
std::string Command = "del /F /Q " + TargetPath + "\\" + arg_result["prefix"].as<std::string>() + "*" + arg_result["postfix"].as<std::string>() + "." + FileExt;
144+
std::string Command = "del /F /Q " + TargetPath + "\\" + arg_result["prefix"].as<std::string>() + "*" + arg_result["suffix"].as<std::string>() + "." + FileExt;
145145
V_COUT(DEBUG, "Deleting existing headers. by using command:" << Command);
146146
system(Command.c_str()); // ToDo: Create a cleaner method for this.
147147
}
@@ -179,13 +179,13 @@ int main(int argc, char* argv[])
179179
my_MiscOptions.exclude_table_interface = arg_result["xinterf"].as<bool>();
180180
my_MiscOptions.use_basic_types_only = arg_result["basic_t"].as<bool>();
181181
my_MiscOptions.exclude_main_hdr_example = arg_result["xvalid"].as<bool>();
182-
my_MiscOptions.exclude_comment_out_exampl = arg_result["cvalid"].as<bool>();
182+
my_MiscOptions.exclude_comment_out_example = arg_result["cvalid"].as<bool>();
183183

184184
//HeaderOpt
185185
sqlite3pp::HeaderOpt my_HeaderOpt = sqlite3pp::SqlBld::HeadersCreatedSqlDir;
186186
my_HeaderOpt.dest_folder = TargetPath + "\\";
187187
my_HeaderOpt.file_type = FileExt;
188-
my_HeaderOpt.header_postfix = arg_result["postfix"].as<std::string>();
188+
my_HeaderOpt.header_suffix = arg_result["suffix"].as<std::string>();
189189
my_HeaderOpt.header_prefix = arg_result["prefix"].as<std::string>();
190190
my_HeaderOpt.header_include = arg_result["include"].as<std::string>();
191191

0 commit comments

Comments
 (0)