Go to the source code of this file.
|
int | main (int argc, char *argv[]) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 69 of file dawg2wordlist.cpp.
70 tesseract::CheckSharedLibraryVersion();
72 if (argc > 1 && (!strcmp(argv[1],
"-v") || !strcmp(argv[1],
"--version"))) {
75 }
else if (argc != 4) {
76 tprintf(
"Print all the words in a given dawg.\n");
77 tprintf(
"Usage: %s -v | --version | %s <unicharset> <dawgfile> <wordlistfile>\n",
81 const char *unicharset_file = argv[1];
82 const char *dawg_file = argv[2];
83 const char *wordlist_file = argv[3];
86 tprintf(
"Error loading unicharset from %s.\n", unicharset_file);
90 if (dict ==
nullptr) {
91 tprintf(
"Error loading dictionary from %s.\n", dawg_file);
94 int retval = WriteDawgAsWordlist(unicharset, dict, wordlist_file);