mirror of
https://github.com/ocrmypdf/OCRmyPDF.git
synced 2025-12-29 08:01:04 +00:00
Don't mess with options
This commit is contained in:
parent
6a160d22fe
commit
60832152b1
@ -161,16 +161,7 @@ debugging.add_argument(
|
||||
'-g', '--debug-rendering', action='store_true',
|
||||
help="render each page twice with debug information on second page")
|
||||
|
||||
|
||||
# Fiddle with arguments to support with unittest.mock
|
||||
_argv = sys.argv
|
||||
if _argv[0].startswith('python'):
|
||||
_argv = _argv[1:]
|
||||
if _argv[0].endswith('.py'):
|
||||
_argv = _argv[1:]
|
||||
if _argv[0].startswith('ocrmypdf'):
|
||||
_argv = _argv[1:]
|
||||
options = parser.parse_args(_argv)
|
||||
options = parser.parse_args()
|
||||
|
||||
|
||||
# ----------
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user