Unverified Commit f0a8886c authored by icecraft's avatar icecraft Committed by GitHub

fix: remove the default value of output option in tools/cli.py and tools/cli_dev.py (#494)

Co-authored-by: 's avataricecraft <xurui1@pjlab.org.cn>
parent bab19e78
...@@ -31,7 +31,6 @@ from magic_pdf.tools.common import do_parse, parse_pdf_methods ...@@ -31,7 +31,6 @@ from magic_pdf.tools.common import do_parse, parse_pdf_methods
type=click.Path(), type=click.Path(),
required=True, required=True,
help='output local directory', help='output local directory',
default='',
) )
@click.option( @click.option(
'-m', '-m',
...@@ -46,11 +45,12 @@ without method specified, auto will be used by default.""", ...@@ -46,11 +45,12 @@ without method specified, auto will be used by default.""",
default='auto', default='auto',
) )
@click.option( @click.option(
"-d", '-d',
"--debug", '--debug',
"debug_able", 'debug_able',
type=bool, type=bool,
help="Enables detailed debugging information during the execution of the CLI commands.", help=('Enables detailed debugging information during'
'the execution of the CLI commands.', ),
default=False, default=False,
) )
def cli(path, output_dir, method, debug_able): def cli(path, output_dir, method, debug_able):
......
...@@ -64,7 +64,6 @@ def cli(): ...@@ -64,7 +64,6 @@ def cli():
type=click.Path(), type=click.Path(),
required=True, required=True,
help='输出到本地目录', help='输出到本地目录',
default='',
) )
def jsonl(jsonl, method, output_dir): def jsonl(jsonl, method, output_dir):
model_config.__use_inside_model__ = False model_config.__use_inside_model__ = False
...@@ -114,8 +113,7 @@ def jsonl(jsonl, method, output_dir): ...@@ -114,8 +113,7 @@ def jsonl(jsonl, method, output_dir):
'output_dir', 'output_dir',
type=click.Path(), type=click.Path(),
required=True, required=True,
help='本地输出目录', help='本地输出目录')
default='')
@click.option( @click.option(
'-m', '-m',
'--method', '--method',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment