From ee644126f4bc2c5e6ed94b9f47ca6a01674d37de Mon Sep 17 00:00:00 2001 From: DoronZ Date: Sun, 14 Jul 2024 19:49:23 +0300 Subject: [PATCH] cli: fix attaching when supplying a `pid` --- hilda/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hilda/cli.py b/hilda/cli.py index b8d0520..cbafa47 100644 --- a/hilda/cli.py +++ b/hilda/cli.py @@ -53,7 +53,7 @@ def attach(name: Optional[str], pid: Optional[int], startup_files: List[str]) -> if name is not None: hilda_client = create_hilda_client_using_attach_by_name(name) elif pid is not None: - hilda_client = create_hilda_client_using_attach_by_pid(name) + hilda_client = create_hilda_client_using_attach_by_pid(pid) else: raise click.UsageError('You must specify a process name or pid') hilda_client.interact(startup_files=startup_files)