AmitGorvadiya / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
Other
0 stars 0 forks source link

-l option badly positioned leads to strange error messages #271

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When setting the -l option, one has to care for its position, as it needs
to be exactly after the filenames. Otherwise, one gets strange errors like
this:

ocr_01 read_variables_file:Can't open
/usr/share/tesseract-ocr/tessdata/configs/ocr_01error: Could not find
variable 'II*'

I suggest that this be fixed by a modern option parsing code, e.g. getopt

Original issue reported on code.google.com by jeffrey....@gmail.com on 22 Dec 2009 at 10:09

GoogleCodeExporter commented 9 years ago
FYI, I had initially reported this against the Debian package (see
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=558257 )

Original comment by olber...@gmail.com on 23 Dec 2009 at 9:55

GoogleCodeExporter commented 9 years ago

Original comment by theraysm...@gmail.com on 20 May 2010 at 4:26

GoogleCodeExporter commented 9 years ago
getopt wasn't portable enough and had to be removed.
Fixed with a useful error message.

Original comment by theraysm...@gmail.com on 20 May 2010 at 5:01