From 7e89f5b69bf723565a5b0aa92974a089c353a92c Mon Sep 17 00:00:00 2001 From: glide-the <2533736852@qq.com> Date: Mon, 12 Jun 2023 20:35:29 +0800 Subject: [PATCH] =?UTF-8?q?cli=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cli.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cli.py b/cli.py index a4f9f5b..3d4c1f3 100644 --- a/cli.py +++ b/cli.py @@ -64,7 +64,7 @@ def start_api(ip, port): # 然后在cli.py里初始化 @start.command(name="cli", context_settings=dict(help_option_names=['-h', '--help'])) -def start_cli(info): +def start_cli(): print("通过cli.py调用cli_demo...") from models import shared @@ -79,8 +79,7 @@ def start_cli(info): # 故建议不要通过以上命令启动webui,将下述语句注释掉 @start.command(name="webui", context_settings=dict(help_option_names=['-h', '--help'])) -@click.option('-i', '--info', default="start client", show_default=True, type=str) -def start_webui(info): +def start_webui(): print(info) import webui