main: add debug option to force threads

This commit is contained in:
James R. Barlow
2018-09-15 00:01:45 -07:00
parent 932b2e2a29
commit fdfe52c1ad
+2
View File
@@ -838,6 +838,8 @@ def report_output_file_size(options, _log, input_file, output_file):
def run_pipeline(args=None):
options = parser.parse_args(args=args)
options.verbose_abbreviated_path = 1
if os.environ.get('_OCRMYPDF_THREADS'):
options.use_threads = True
if not check_closed_streams(options):
return ExitCode.bad_args