diff options
Diffstat (limited to 'utils/storage/gen_binary_files.cpp')
| -rw-r--r-- | utils/storage/gen_binary_files.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/storage/gen_binary_files.cpp b/utils/storage/gen_binary_files.cpp index 0d66c45..e3f2d81 100644 --- a/utils/storage/gen_binary_files.cpp +++ b/utils/storage/gen_binary_files.cpp @@ -24,10 +24,12 @@ #include "utils_helper.h" static const gchar * table_dir = "."; +static gboolean gen_punct_table = FALSE; static GOptionEntry entries[] = { {"table-dir", 0, 0, G_OPTION_ARG_FILENAME, &table_dir, "table directory", NULL}, + {"gen-punct-table", 0, 0, G_OPTION_ARG_NONE, &gen_punct_table, "generate punctuation table", NULL}, {NULL} }; @@ -143,7 +145,8 @@ int main(int argc, char * argv[]){ ADDON_SYSTEM_PHRASE_INDEX, phrase_files, type); - generate_punct_table(SYSTEM_PUNCT_TABLE); + if (gen_punct_table) + generate_punct_table(SYSTEM_PUNCT_TABLE); return 0; } |
