Improve help text about aborting due to text

This commit is contained in:
James R. Barlow
2020-04-15 02:17:55 -07:00
parent 2155bcacb4
commit 9e3e4f2687
2 changed files with 8 additions and 1 deletions
+2 -1
View File
@@ -252,7 +252,8 @@ def is_ocr_required(page_context):
elif pageinfo.has_text:
if not options.force_ocr and not (options.skip_text or options.redo_ocr):
raise PriorOcrFoundError(
"page already has text! - aborting (use --force-ocr to force OCR)"
"page already has text! - aborting (use --force-ocr to force OCR; "
" see also help for the arguments --skip-text and --redo-ocr"
)
elif options.force_ocr:
log.info("page already has text! - rasterizing text and running OCR anyway")