mirror of
https://github.com/aimrebirth/tools.git
synced 2026-04-14 17:33:25 +00:00
[db_extractor] Add codepage argument.
This commit is contained in:
parent
ceddfbd26a
commit
53b835d187
1 changed files with 2 additions and 1 deletions
|
|
@ -124,11 +124,12 @@ void create_sql(path p, const polygon4::tools::db::processed_db &db)
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
cl::opt<path> db_fn(cl::Positional, cl::desc("<db file>"), cl::Required);
|
cl::opt<path> db_fn(cl::Positional, cl::desc("<db file>"), cl::Required);
|
||||||
|
cl::opt<int> codepage(cl::Positional, cl::desc("<codepage>"), cl::Required);
|
||||||
|
|
||||||
cl::ParseCommandLineOptions(argc, argv);
|
cl::ParseCommandLineOptions(argc, argv);
|
||||||
|
|
||||||
db db;
|
db db;
|
||||||
db.open(db_fn);
|
db.open(db_fn);
|
||||||
create_sql(db_fn, db.process());
|
create_sql(db_fn, db.process(codepage));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue