在命令行关联期间,如果返回异常,则会显示调用栈,其中显示了无效参数。
作者: sunnyozj创建于 2025年2月5日更新于 2026年8月21日
标签parsing
def resolve_command(
self, ctx: Context, args: list[str]
) -> tuple[str | None, Command | None, list[str]]:
cmd_name = make_str(args[0])
original_cmd_name = cmd_name
# Get the command
cmd = self.get_command(ctx, cmd_name)内容来源: pallets/click