mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 06:30:14 +08:00
fix issue 52
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@371 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
parent
ddcb98565a
commit
791f86b15a
@ -175,6 +175,12 @@ int main(int argc, char **argv) {
|
||||
argc = 0;
|
||||
}
|
||||
}
|
||||
#ifdef HAVE_CONFIG_H /* Assume that only Unix users care about -v */
|
||||
if (argc == 2 && strcmp(argv[1], "-v") == 0) {
|
||||
fprintf(stderr, "tesseract %s\n", PACKAGE_VERSION);
|
||||
exit(1);
|
||||
}
|
||||
#endif
|
||||
if (argc < 3) {
|
||||
fprintf(stderr, "Usage:%s imagename outputbase [-l lang]"
|
||||
" [configfile [[+|-]varfile]...]\n"
|
||||
|
Loading…
Reference in New Issue
Block a user