From 1fca9a004dd1f6d6b6e5419908416c5cc818c977 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Mon, 11 Jan 2016 16:57:19 -0800 Subject: [PATCH] Adjust command line parameters Was splitting each argument to --tesseract-config into a list of single character strings --- ocrmypdf/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ocrmypdf/main.py b/ocrmypdf/main.py index f7f4dcab..2604a406 100755 --- a/ocrmypdf/main.py +++ b/ocrmypdf/main.py @@ -170,13 +170,13 @@ advanced = parser.add_argument_group( "Advanced", "Advanced options for power users") advanced.add_argument( - '--tesseract-config', default=[], type=list, action='append', + '--tesseract-config', action='append', metavar='CFG', help="additional Tesseract configuration files") advanced.add_argument( '--pdf-renderer', choices=['auto', 'tesseract', 'hocr'], default='auto', help='choose OCR PDF renderer') advanced.add_argument( - '--tesseract-timeout', default=180.0, type=float, + '--tesseract-timeout', default=180.0, type=float, metavar='SECONDS', help='give up on OCR after the timeout, but copy the preprocessed page ' 'into the final output')