fix issue 52

git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@371 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
joregan 2010-05-26 21:34:03 +00:00
parent ddcb98565a
commit 791f86b15a

View File

@ -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"